Skip to content

Commit cacc10b

Browse files
authored
chore: Refactor test workflow (google#3929)
1 parent 44a693d commit cacc10b

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,11 @@ jobs:
4242
runs-on: ${{ matrix.platform }}
4343

4444
steps:
45+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4546
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
4647
with:
4748
go-version: ${{ matrix.go-version }}
48-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
49-
50-
# Get values for cache paths to be used in later steps
51-
- id: cache-paths
52-
run: |
53-
echo "go-cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT
54-
echo "go-mod-cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
55-
56-
- name: Cache go modules
57-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
58-
with:
59-
path: |
60-
${{ steps.cache-paths.outputs.go-cache }}
61-
${{ steps.cache-paths.outputs.go-mod-cache }}
62-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
63-
restore-keys: ${{ runner.os }}-go-
49+
cache-dependency-path: "**/go.sum"
6450

6551
- name: Run go test
6652
run: |

0 commit comments

Comments
 (0)