Skip to content

Commit

Permalink
ci: run linter on all supported Go versions (#4126)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Oct 25, 2023
1 parent 30f9c01 commit 1bcec70
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/lint.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1bcec70

Please sign in to comment.