Skip to content

Commit

Permalink
use cache for linting
Browse files Browse the repository at this point in the history
Change setup-go to use cache (enabled by default). Also, extract the used Go version from the go.mod file instead of hard coding it.
  • Loading branch information
friedrichwilken committed Dec 28, 2023
1 parent f488f21 commit f26e177
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/codequality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
- name: setup go
uses: actions/setup-go@v5
with:
go-version: "1.21"
cache: false
- uses: actions/checkout@v4
go-version-file: "./go.mod"

- name: checkout code
uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down

0 comments on commit f26e177

Please sign in to comment.