-
Notifications
You must be signed in to change notification settings - Fork 89
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 #292 from netlify/chore/actions-verify-go
chore(actions): check uncomitted go source code changes
- Loading branch information
Showing
2 changed files
with
36 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,33 @@ | ||
name: Verify Go client | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
verify-go: | ||
name: Verify go client source code is up to date | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
go_version: [1.14.x] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go ${{ matrix.go }} | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go_version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: make all | ||
- name: Check for changes | ||
run: | | ||
if [ -z "$(git status --porcelain)" ]; then | ||
echo "No changes to the go client source files detected" | ||
else | ||
echo "Changes to the go client source files detected, please run 'make all' and push your changes" | ||
exit 1 | ||
fi |
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 |
---|---|---|
|
@@ -4,4 +4,6 @@ vendor | |
yarn.lock | ||
dist | ||
.vscode | ||
.gobincache | ||
.gobincache | ||
swagger_flat.json | ||
swagger_go.json |