Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Setup Environment
description: Sets up Go and installs system dependencies

runs:
using: "composite"
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'

- name: Install libwebp-dev
run: |
sudo apt-get update
sudo apt-get install -y libwebp-dev
shell: bash

22 changes: 8 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Setup Go and system deps
uses: ./.github/actions/setup-env

- name: Install dependencies
run: go mod download

- name: Run unit tests
run: go test ./... -v
run: go test $(go list ./... | grep -v '/tests') -v

integration-tests:
name: integration-tests
Expand All @@ -35,10 +33,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Setup Go and system deps
uses: ./.github/actions/setup-env

- name: Run integration tests
run: go test -v -p 1 -count=1 -tags=integration ./...
Expand All @@ -51,11 +47,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'

- name: Setup Go and system deps
uses: ./.github/actions/setup-env

- name: Install dependencies
run: cd tests/system && go mod download

Expand Down
Loading
Loading