generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: separate Makefile checks into separate GitHub action job
- Loading branch information
1 parent
9a01a14
commit 17f8a02
Showing
2 changed files
with
23 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# We need to run the format checks on a Linux machine because gofmt | ||
# asserts platform-specific line endings (see #259) | ||
name: Code Format Checks | ||
on: [push, pull_request] | ||
jobs: | ||
code_format_checks: | ||
strategy: | ||
matrix: | ||
go: ['1.16'] | ||
platform: [ubuntu-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run Code Format Checks | ||
run: | | ||
make all |
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 |
---|---|---|
|
@@ -33,5 +33,4 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: Run Windows Unit Tests | ||
run: | | ||
make all | ||
go test -v -race ./pkg/... |