Skip to content

Commit

Permalink
workflows: Modernize the setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Dec 29, 2023
1 parent 5b7a0a5 commit ff3f513
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: WillAbides/setup-go-faster@v1.10.1
- uses: WillAbides/setup-go-faster@v1.13.0
with:
go-version: '1.21.x'

Expand All @@ -24,9 +24,10 @@ jobs:
- name: Install static analysis tools
run: |
go install github.com/securego/gosec/v2/cmd/[email protected]
go install github.com/securego/gosec/v2/cmd/[email protected]
go install golang.org/x/vuln/cmd/govulncheck@latest
go install github.com/fzipp/gocyclo/cmd/[email protected]
go install honnef.co/go/tools/cmd/[email protected].5
go install honnef.co/go/tools/cmd/[email protected].6
go install mvdan.cc/[email protected]
- name: Vet
Expand All @@ -43,3 +44,6 @@ jobs:

- name: Gosec
run: gosec ./...

- name: Vulncheck
run: govulncheck ./...
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install build dependencies
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: ['1.17.x', '1.21.x']
go-version: ['1.18.x', '1.21.x']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: WillAbides/setup-go-faster@v1.10.1
- uses: WillAbides/setup-go-faster@v1.13.0
with:
go-version: ${{ matrix.go-version }}

Expand Down

0 comments on commit ff3f513

Please sign in to comment.