Skip to content

Commit 00f737a

Browse files
committed
build: update e2e 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 402412b commit 00f737a

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/e2e.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,21 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
2323
- name: Setup Go
24-
uses: actions/setup-go@v3
24+
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
2525
with:
2626
go-version: 1.20.x
27-
- name: Restore Go cache
28-
uses: actions/cache@v3
29-
with:
30-
path: /home/runner/work/_temp/_github_home/go/pkg/mod
31-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32-
restore-keys: |
33-
${{ runner.os }}-go-
27+
cache-dependency-path: |
28+
**/go.sum
29+
**/go.mod
3430
- name: Enable integration tests
3531
# Only run integration tests for main branch
3632
if: github.ref == 'refs/heads/main'
3733
run: |
3834
echo 'GO_TAGS=integration' >> $GITHUB_ENV
3935
- name: Setup Kubernetes
40-
uses: helm/[email protected]
36+
uses: helm/kind-action@d8ccf8fb623ce1bb360ae2f45f323d9d5c5e9f00 # v1.5.0
4137
with:
4238
version: v0.17.0
4339
cluster_name: kind
@@ -58,11 +54,14 @@ jobs:
5854
runs-on: [self-hosted, Linux, ARM64, equinix]
5955
steps:
6056
- name: Checkout
61-
uses: actions/checkout@v3
57+
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
6258
- name: Setup Go
63-
uses: actions/setup-go@v3
59+
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
6460
with:
6561
go-version: 1.20.x
62+
cache-dependency-path: |
63+
**/go.sum
64+
**/go.mod
6665
- name: Enable integration tests
6766
# Only run integration tests for main branch
6867
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)