Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,15 @@ jobs:
with:
fetch-depth: 0

- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-go@v3
with:
go-version: '^1.18'
cache: true
go-version-file: 'go.mod'

- name: Test and build image
run: |
Expand Down Expand Up @@ -60,14 +54,8 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: '^1.18'

- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
cache: true
go-version-file: 'go.mod'

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.2.0
Expand Down Expand Up @@ -100,7 +88,8 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: '^1.18'
cache: true
go-version-file: 'go.mod'

- name: bundle
run: |
Expand Down