Skip to content

Commit 4081e4b

Browse files
committed
build: update verify workflow
- Update actions to their latest versions. - Use SHA to (potentially) allow enabling Dependabot. - Move caching responsibility to `actions/setup-go` (supported since >=v3). Signed-off-by: Hidde Beydals <[email protected]>
1 parent 85bde48 commit 4081e4b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/verify.yaml

+5-9
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,13 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
2424
- name: Setup Go
25-
uses: actions/setup-go@v3
25+
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
2626
with:
2727
go-version: 1.20.x
28-
- name: Restore Go cache
29-
uses: actions/cache@v3
30-
with:
31-
path: /home/runner/work/_temp/_github_home/go/pkg/mod
32-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
33-
restore-keys: |
34-
${{ runner.os }}-go-
28+
cache-dependency-path: |
29+
**/go.sum
30+
**/go.mod
3531
- name: Verify
3632
run: make verify

0 commit comments

Comments
 (0)