Skip to content

Commit

Permalink
Use a native cache feature in actions/setup-go
Browse files Browse the repository at this point in the history
The actions/setup-go has a native cache feature.
There is no need to use actions/cache.
  • Loading branch information
minamijoyo committed Jul 5, 2022
1 parent 77e3b2f commit d6d80ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version-file: '.go-version'
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: actions/setup-go@v3
with:
go-version-file: '.go-version'
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version-file: '.go-version'
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
cache: true
- name: test
run: make test
testacc:
Expand Down

0 comments on commit d6d80ea

Please sign in to comment.