Skip to content

ci: fix workflow YAML parsing #3

ci: fix workflow YAML parsing

ci: fix workflow YAML parsing #3

Workflow file for this run

name: CI
"on":
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Check formatting
run: test -z "$(gofmt -l .)"
- name: Run tests
run: go test ./...
- name: Run vet
run: go vet ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: |
"$(go env GOPATH)/bin/staticcheck" ./...