Skip to content

Commit 5e79476

Browse files
authored
Actions Updates (#178)
Brings a bunch of our github actions back up to date to remove more deprecation warnings and also removes an unnecessary caching step since actions/setup-go@v4 does this by default. Signed-off-by: dtfranz <[email protected]>
1 parent a3e18da commit 5e79476

File tree

4 files changed

+7
-33
lines changed

4 files changed

+7
-33
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,10 @@ jobs:
1414

1515
- uses: actions/checkout@v3
1616

17-
- uses: actions/setup-go@v3
17+
- uses: actions/setup-go@v4
1818
with:
1919
go-version-file: go.mod
2020

21-
- uses: actions/cache@v3
22-
with:
23-
path: |
24-
~/.cache/go-build
25-
~/go/pkg/mod
26-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27-
restore-keys: |
28-
${{ runner.os }}-go-
29-
3021
- name: Run e2e tests
3122
run: |
3223
make e2e

.github/workflows/go-apidiff.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,8 @@ jobs:
99
with:
1010
fetch-depth: 0
1111

12-
- uses: actions/setup-go@v3
12+
- uses: actions/setup-go@v4
1313
with:
1414
go-version-file: go.mod
1515

16-
- uses: actions/cache@v3
17-
with:
18-
path: |
19-
~/.cache/go-build
20-
~/go/pkg/mod
21-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
22-
restore-keys: |
23-
${{ runner.os }}-go-
24-
2516
- uses: joelanford/go-apidiff@main

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
fetch-depth: 0
2323

2424
- name: Install Go
25-
uses: actions/setup-go@v3
25+
uses: actions/setup-go@v4
2626
with:
2727
go-version-file: "go.mod"
2828

2929
- name: Docker Login
3030
if: ${{ github.event_name != 'pull_request' }}
31-
uses: docker/login-action@v1
31+
uses: docker/login-action@v2
3232
with:
3333
registry: quay.io
3434
username: ${{ secrets.QUAY_USERNAME }}
@@ -55,7 +55,8 @@ jobs:
5555
- name: Generate the operator-controller release manifests
5656
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
5757
run: |
58-
make quickstart VERSION=${GITHUB_REF#refs/tags/}
58+
echo VERSION="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
59+
make quickstart
5960
6061
- name: Run goreleaser
6162
run: make release

.github/workflows/unit-test.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,10 @@ jobs:
1414

1515
- uses: actions/checkout@v3
1616

17-
- uses: actions/setup-go@v3
17+
- uses: actions/setup-go@v4
1818
with:
1919
go-version-file: go.mod
2020

21-
- uses: actions/cache@v3
22-
with:
23-
path: |
24-
~/.cache/go-build
25-
~/go/pkg/mod
26-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27-
restore-keys: |
28-
${{ runner.os }}-go-
29-
3021
- name: Run basic unit tests
3122
run: |
3223
make test-unit

0 commit comments

Comments
 (0)