-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0178053
commit 1c38315
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,18 +36,26 @@ jobs: | |
- run: PATH=$PATH:$GOPATH/bin make build | ||
unit-test: | ||
name: Unit tests | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: controller | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version-file: controller/go.mod | ||
check-latest: true | ||
- run: PATH=$PATH:$GOPATH/bin make test | ||
cache: true | ||
- name: Download dependencies | ||
run: go mod download | ||
- name: Download tools | ||
run: PATH=$PATH:$GOPATH/bin make tools | ||
- name: Test | ||
run: PATH=$PATH:$GOPATH/bin make test | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|