Skip to content

chore: give the repo a check that runs without the rest of the world #1

chore: give the repo a check that runs without the rest of the world

chore: give the repo a check that runs without the rest of the world #1

Workflow file for this run

name: check
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: gofmt
run: |
unformatted="$(gofmt -l .)"
if [ -n "$unformatted" ]; then
echo "these files are not gofmt-clean:"
echo "$unformatted"
exit 1
fi
- run: go vet ./...
- run: go build ./...
- run: go test ./...