Skip to content

Commit

Permalink
Use go-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanotti committed Jan 7, 2025
1 parent 46438ee commit 23146e8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/scoped-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,20 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.5"
go-version: "1.22.8"
cache: false

- name: Cache Go
id: go-cache
timeout-minutes: 5
uses: actions/cache@v4
with:
path: |
~/go/bin
~/go/pkg/mod
./.tools
key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }}

- name: Run changed tests
if: needs.changedfiles.outputs.go_tests
env:
Expand Down

0 comments on commit 23146e8

Please sign in to comment.