-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from jgwest/add-go-fmt-check-jan
Add gofmt check and fix branch names
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Run E2E tests | |
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'main' | ||
- 'release-*' | ||
pull_request: | ||
branches: | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ name: Go | |
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'main' | ||
- 'release-*' | ||
pull_request: | ||
branches: | ||
|
@@ -29,3 +29,18 @@ jobs: | |
|
||
- name: Test | ||
run: make test | ||
|
||
gofmt: | ||
name: "Ensure that code is gofmt-ed" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Golang | ||
uses: actions/[email protected] | ||
with: | ||
go-version-file: './go.mod' | ||
- name: "Run make fmt and then 'git diff' to see if anything changed: to fix this check, run make fmt and then commit the changes." | ||
run: | | ||
make fmt | ||
git diff --exit-code -- . | ||
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