Skip to content

Commit

Permalink
Fix caching by checking code out before invoking setup-go
Browse files Browse the repository at this point in the history
  • Loading branch information
jshufro committed May 7, 2024
1 parent 1e5c467 commit 3a2b404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.8
- uses: actions/checkout@v4
- run: go mod download all
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: 1.21.8
cache-dependency-path: "**/go.sum"
- run: go test ./...

0 comments on commit 3a2b404

Please sign in to comment.