Skip to content

Commit

Permalink
feat: fix govulncheck github action
Browse files Browse the repository at this point in the history
  • Loading branch information
moisespsena committed Sep 14, 2023
1 parent 970b4b7 commit 736b701
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: '1.21'

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

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

build:
needs: govulncheck
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest' ]
go: [ '1.20' ]
go: [ '1.21' ]
arch: [ 'amd64', 'arm64', '386' ]
runs-on: ${{ matrix.os }}
name: Test and Build go${{ matrix.go }}_${{ matrix.os }}_${{ matrix.arch }}
Expand All @@ -53,12 +53,8 @@ jobs:
go-version: ${{ matrix.go }}

- name: Install Staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@2022.1
if: ${{ (matrix.go == '1.17') || (matrix.go == '1.18') }}

- name: Install Staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@2023.1.2
if: ${{ (matrix.go == '1.19') || (matrix.go == '1.20') }}
run: go install honnef.co/go/tools/cmd/staticcheck@2023.1.6
if: ${{ (matrix.go == '1.21') }}

- name: Test
run: make test
Expand Down

0 comments on commit 736b701

Please sign in to comment.