# Tests the module: formatting, vet and tests. name: CI on: push: branches: [main] pull_request: workflow_dispatch: jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Test run: | unformatted=$(gofmt -l .) if [ -n "$unformatted" ]; then echo "Not gofmt-formatted: $unformatted"; exit 1; fi go vet ./... GOOS=windows go vet ./... go test ./...