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 Apr 18, 2023
1 parent 9f6ca15 commit 49c7db3
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: Generate github app token
id: generate_github_app_token
uses: tibdex/github-app-token@f717b5ecd4534d3c4df4ce9b5c1c2214f0f7cd06 # v1.6.0
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ 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

0 comments on commit 49c7db3

Please sign in to comment.