From e9dc88f83a29d6d9c977fc00885d6d31f40186c0 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Thu, 5 Mar 2026 22:35:33 +0000 Subject: [PATCH 1/2] ci: add staticcheck lint job and Go version matrix for unit tests --- .github/workflows/integration.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 70189cb..c8d92d5 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -6,18 +6,34 @@ on: branches: [master] jobs: - unit-tests: - name: Unit Tests + lint: + name: Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version-file: go.mod - - run: go build ./... + - name: Install staticcheck + run: go install honnef.co/go/tools/cmd/staticcheck@latest - run: go vet ./... + - run: staticcheck ./... + + unit-tests: + name: Unit Tests (Go ${{ matrix.go-version }}) + runs-on: ubuntu-latest + strategy: + matrix: + go-version: ['1.25', '1.26'] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - run: go build ./... - run: go test -race -coverprofile=coverage-unit.out ./... - uses: actions/upload-artifact@v4 + if: matrix.go-version == '1.26' with: name: coverage-unit path: coverage-unit.out @@ -174,7 +190,7 @@ jobs: codecov: name: Upload Coverage runs-on: ubuntu-latest - needs: [unit-tests, debian, ubuntu, fedora-dnf4, fedora-dnf5, alpine, arch, flatpak] + needs: [lint, unit-tests, debian, ubuntu, fedora-dnf4, fedora-dnf5, alpine, arch, flatpak] if: always() steps: - uses: actions/checkout@v4 From 342f10f38b9d26ccf501ac30bd8a5296894a6636 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Thu, 5 Mar 2026 22:37:56 +0000 Subject: [PATCH 2/2] ci: drop Go 1.25 from matrix (go.mod requires 1.26) --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index c8d92d5..74d827a 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: ['1.25', '1.26'] + go-version: ['1.26'] steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5