Skip to content

Commit

Permalink
Bump GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckal777 committed Apr 21, 2022
1 parent 377c173 commit 9047386
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/test_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
# always uses the latest patch version.
version: v1.45
Expand All @@ -21,15 +26,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17

- name: Cache Go modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -38,15 +43,15 @@ jobs:
- name: Cache kubebuilder binaries
id: cache-kubebuilder
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: kubebuilder/bin
# Use SHA-256 hash of the .kubebuilder-version file as the key.
key: ${{ runner.os }}-kubebuilder-${{ hashFiles('.github/.kubebuilder-version') }}

- name: Cache testbin binaries
id: cache-testbin
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: testbin
# Use SHA-256 hash of the Makefile file as the key.
Expand Down Expand Up @@ -74,7 +79,7 @@ jobs:
path-to-profile: coverage.out

- name: Upload coverage results
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage.html

0 comments on commit 9047386

Please sign in to comment.