From 1bcec709781fcfb0bd653a9d6e5dcc550f0469c8 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 25 Oct 2023 12:03:41 +0700 Subject: [PATCH] ci: run linter on all supported Go versions (#4126) --- .github/workflows/lint.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1d5648614..fd735c9b7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: - uses: actions/setup-go@v4 with: skip-pkg-cache: true - go-version: "1.20.x" + go-version: "1.21.x" - name: Check that no non-test files import Ginkgo or Gomega run: .github/workflows/no_ginkgo.sh - name: Check for //go:build ignore in .go files @@ -36,11 +36,16 @@ jobs: go mod vendor golangci-lint: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + go: [ "1.20.x", "1.21.x" ] + name: golangci-lint (Go ${{ matrix.go }}) steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: "1.20.x" + go-version: ${{ matrix.go }} - name: golangci-lint (Linux) uses: golangci/golangci-lint-action@v3 with: