Skip to content

Commit 7109743

Browse files
CI: Update actions (#68)
1 parent d553783 commit 7109743

2 files changed

Lines changed: 8 additions & 22 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,12 @@ jobs:
1212
run:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-go@v2
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-go@v4
1717
with:
18-
go-version: 1.20.x
18+
go-version-file: go.mod
1919
- name: Ensure go.mod is already tidied
20-
run: |
21-
go mod tidy
22-
git diff -s --exit-code go.sum
23-
- uses: actions/cache@v2
24-
with:
25-
path: ~/go/pkg/mod
26-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27-
restore-keys: |
28-
${{ runner.os }}-go-
20+
run: go mod tidy && git diff -s --exit-code go.sum
2921
- run: make vet fmt lint test
3022
- run: make dist
3123
- run: make validate-krew-manifest

.github/workflows/release.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,16 @@ jobs:
88
run:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-go@v2
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-go@v4
1313
with:
14-
go-version: 1.18.x
15-
- uses: actions/cache@v2
16-
with:
17-
path: ~/go/pkg/mod
18-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
19-
restore-keys: |
20-
${{ runner.os }}-go-
14+
go-version-file: go.mod
2115
- run: make release
2216
- uses: softprops/action-gh-release@v1
2317
with:
2418
files: dist/!(config.yaml)
2519
env:
2620
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
- uses: rajatjindal/krew-release-bot@v0.0.40
21+
- uses: rajatjindal/krew-release-bot@v0.0.46
2822
with:
2923
krew_template_file: dist/view-serviceaccount-kubeconfig.yaml

0 commit comments

Comments
 (0)