Initial commit #2
Workflow file for this run
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
name: Continuous Integration | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- run: env | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.22.0' | |
- name: Install staticcheck | |
run: go install honnef.co/go/tools/cmd/staticcheck@HEAD | |
- name: Print staticcheck version | |
run: staticcheck -version | |
- name: Run go build | |
run: make all | |
- name: Run go test | |
run: make test | |
- name: Run go vet | |
run: make vet | |
- name: Run go fmt | |
run: if [ "$(go fmt | wc -l)" -ne 0 ]; then exit 1; fi |