-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): initial addition of github action
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "Go" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- mvp | ||
- release-* | ||
|
||
jobs: | ||
static: | ||
name: "Run Continuous Integration" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: Verify bindata was generated | ||
run: | | ||
go install github.com/go-bindata/go-bindata/go-bindata@latest | ||
set -xe | ||
./hack/update-generated-bindata.sh | ||
set +ex | ||
git diff --exit-code | ||
- name: Run unit tests | ||
run: make test | ||
- name: Run go vet | ||
run: make vet | ||
- name: Run static code analysis | ||
uses: dominikh/staticcheck-action@v1.2.0 | ||
with: | ||
version: "2022.1.1" |