Skip to content

Commit 3e00959

Browse files
authoredApr 24, 2023
GitHub Actions Updates (#2956)
Updates our github action versions for future proofing and to silence deprecation warnings. Signed-off-by: Daniel Franz <[email protected]>
1 parent b5a885e commit 3e00959

10 files changed

+30
-29
lines changed
 

‎.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Check out the repo
10-
uses: actions/checkout@v1
10+
uses: actions/checkout@v3
1111
- name: Build the container image
12-
uses: docker/build-push-action@v2
12+
uses: docker/build-push-action@v4
1313
with:
1414
context: .
1515
file: Dockerfile

‎.github/workflows/e2e-tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
parallel-id: [0, 1, 2, 3]
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v1
19-
- uses: actions/setup-go@v3
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-go@v4
2020
with:
2121
go-version-file: "go.mod"
2222
- run: mkdir -p artifacts
2323
- run: make e2e-local E2E_TEST_CHUNK=${{ matrix.parallel-id }} E2E_TEST_NUM_CHUNKS=${{ strategy.job-total }} E2E_NODES=2 ARTIFACT_DIR=./artifacts/ SKIP='\[FLAKE\]'
2424
- name: Archive Test Artifacts # test results, failed or not, are always uploaded.
2525
if: ${{ always() }}
26-
uses: actions/upload-artifact@v2
26+
uses: actions/upload-artifact@v3
2727
with:
2828
name: e2e-test-output-${{ (github.event.pull_request.head.sha || github.sha) }}-${{ github.run_id }}-${{ matrix.parallel-id }}
2929
path: ${{ github.workspace }}/bin/artifacts/*

‎.github/workflows/flaky-e2e.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
flaky-e2e-tests:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v1
15-
- uses: actions/setup-go@v3
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-go@v4
1616
with:
1717
go-version-file: "go.mod"
1818
- run: mkdir -p artifacts
1919
- run: make e2e-local E2E_NODES=1 TEST='\[FLAKE\]' ARTIFACT_DIR=./artifacts/
2020
- name: Archive Test Artifacts # test results, failed or not, are always uploaded.
2121
if: ${{ always() }}
22-
uses: actions/upload-artifact@v2
22+
uses: actions/upload-artifact@v3
2323
with:
2424
name: e2e-test-output-${{(github.event.pull_request.head.sha||github.sha)}}-${{ github.run_id }}
2525
path: ${{ github.workspace }}/bin/artifacts/*

‎.github/workflows/goreleaser.yaml

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v1
13+
uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Go
17-
uses: actions/setup-go@v3
17+
uses: actions/setup-go@v4
1818
with:
1919
go-version-file: "go.mod"
2020

@@ -25,7 +25,10 @@ jobs:
2525
if [[ $GITHUB_REF == refs/tags/* ]]; then
2626
echo IMAGE_TAG="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
2727
fi
28-
28+
29+
# TODO dtfranz
30+
# This action uses node12 and the source repo is archived;
31+
# we should remove it or find a suitable replacement before it becomes a blocker.
2932
- name: Create a draft release
3033
uses: actions/create-release@v1
3134
id: release
@@ -42,15 +45,15 @@ jobs:
4245
if: startsWith(github.ref, 'refs/tags')
4346

4447
- name: Docker Login
45-
uses: docker/login-action@v1
48+
uses: docker/login-action@v2
4649
if: startsWith(github.ref, 'refs/tags')
4750
with:
4851
registry: quay.io
4952
username: ${{ secrets.QUAY_USERNAME }}
5053
password: ${{ secrets.QUAY_PASSWORD }}
5154

5255
- name: Run GoReleaser
53-
uses: goreleaser/goreleaser-action@v2
56+
uses: goreleaser/goreleaser-action@v4
5457
if: startsWith(github.ref, 'refs/tags')
5558
with:
5659
version: 0.177.0

‎.github/workflows/quickstart.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
install-quickstart:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v3
1212
- run: |
1313
curl -sLo kind "$(curl -sL https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '[.assets[] | select(.name == "kind-linux-amd64")] | first | .browser_download_url')"
1414
chmod +x kind

‎.github/workflows/run-kind-local.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
e2e-kind:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
12-
- uses: actions/setup-go@v3
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-go@v4
1313
with:
1414
go-version-file: "go.mod"
1515
- name: Install kind

‎.github/workflows/run-minikube-local.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
e2e-minikube:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
12-
- uses: actions/setup-go@v3
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-go@v4
1313
with:
1414
go-version-file: "go.mod"
1515
- name: Install minikube

‎.github/workflows/sanity.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ jobs:
99
vendor:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-go@v3
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-go@v4
1414
with:
1515
go-version-file: "go.mod"
1616
- name: Run sanity checks
1717
run: make vendor && make diff
1818
lint:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2
22-
- uses: actions/setup-go@v3
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-go@v4
2323
with:
2424
go-version-file: "go.mod"
2525
- name: Run linting checks

‎.github/workflows/unit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
unit:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v1
15-
- uses: actions/setup-go@v3
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-go@v4
1616
with:
1717
go-version-file: "go.mod"
1818
- name: Envtest setup

‎.github/workflows/verify.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ jobs:
99
verify:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-go@v3
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-go@v4
1414
with:
1515
go-version-file: "go.mod"
1616

1717
# Note(tflannag): We need to explicitly setup the GOPATH as the generate-internal-groups.sh
1818
# codegen script still relies on $GOPATH being set and will return an error otherwise.
1919
# The setup-go action does not set this value for us: https://github.com/actions/setup-go/issues/14.
2020
- name: Run the verify target
21-
run: |
22-
export GOPATH=$(go env GOPATH)
23-
make verify
21+
run: GOPATH=$(go env GOPATH) make verify

0 commit comments

Comments
 (0)
Please sign in to comment.