Files
lerko a9da5c1765
CI / test (pull_request) Successful in 2m28s
fix(ci): act runner compatibility
- Default shell to sh (act runner image lacks bash)
- Drop -race flag (requires cgo, unavailable in act runner)
2026-05-21 11:07:37 -04:00

38 lines
640 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: sh
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Vet
run: go vet ./...
- name: Format check
run: |
diff=$(gofmt -l .)
if [ -n "$diff" ]; then
echo "Files need formatting:"
echo "$diff"
exit 1
fi
- name: Test
run: go test -count=1 ./...
- name: Build
run: go build -trimpath -o nib .