Run CI on push to main as well as pull requests.
CI / check-and-test (pull_request) Failing after 1m1s

Direct pushes to main currently skip tests because the workflow only listened for pull_request. Scratchbox already tests every push; do the same here.
This commit is contained in:
s1d3sw1ped_bot
2026-08-31 15:05:28 -05:00
parent 04f55535a5
commit 3d3c74fdb2
+6 -3
View File
@@ -1,6 +1,9 @@
name: PR Check
name: CI
on:
- pull_request
pull_request:
push:
branches:
- main
jobs:
check-and-test:
@@ -21,4 +24,4 @@ jobs:
- run: go install golang.org/x/vuln/cmd/govulncheck@latest
- run: govulncheck ./...
- run: go test -race -v -shuffle=on -coverprofile=coverage.out -timeout=5m ./...
- run: go tool cover -func=coverage.out | tail -10 # basic coverage report
- run: go tool cover -func=coverage.out | tail -10 # basic coverage report