Skip to content

Commit

Permalink
ci: add go matrix strategy
Browse files Browse the repository at this point in the history
Signed-off-by: Sasha Melentyev <[email protected]>
  • Loading branch information
sashamelentyev committed Feb 12, 2024
1 parent abd8567 commit 54d7c41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ env:
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.20', '1.21', '1.22' ]

steps:
- name: Checkout code
Expand All @@ -20,7 +23,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
go-version: ${{ matrix.go }}

- name: Go Format
run: gofmt -s -w . && git diff --exit-code
Expand All @@ -39,6 +42,7 @@ jobs:

- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest

- name: Run govulncheck
run: govulncheck ./...

Expand Down

0 comments on commit 54d7c41

Please sign in to comment.