-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github workflow to build and test
- Loading branch information
1 parent
a22d75a
commit b3c9684
Showing
1 changed file
with
28 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,28 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ develop, master ] | ||
pull_request: | ||
branches: [ "develop" ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: [ '1.19', '1.20', '1.21.x' ] | ||
- name: Gomod | ||
run: go mod download | ||
- name: Golint | ||
run: hack/verify-golint.sh | ||
- name: Gofmt | ||
run: hack/verify-gofmt.sh | ||
- name: Go vet | ||
run: hack/verify-govet.sh | ||
- name: Test | ||
run: go test -race -cover ./... |