Skip to content

update test workflow #3

update test workflow

update test workflow #3

Workflow file for this run

on: [push, workflow_dispatch]
name: Tests
jobs:
golang-test:
name: golang-test
runs-on: ubuntu-latest
steps:
- name: Setup golang
uses: actions/setup-go@v4
with:
go_version: ${{ vars.GO_VERSION }}
- name: Install staticcheck
run: |
go install honnef.co/go/tools/cmd/[email protected]
- name: Test go app
run: |
go test ./...
- name: check go fmt
run: |
test -z $(gofmt -l .)
- name: lint with staticcheck
run: |
staticcheck -checks all ./...