Run CI on push to main #11

Merged
s1d3sw1ped merged 9 commits from ci/test-on-push into main 2026-08-31 15:47:07 -05:00
Showing only changes of commit fbb084d824 - Show all commits
+12 -2
View File
@@ -13,6 +13,7 @@ jobs:
- uses: actions/setup-go@main - uses: actions/setup-go@main
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
check-latest: true
- run: go mod tidy - run: go mod tidy
- run: go build ./... - run: go build ./...
- run: go vet ./... - run: go vet ./...
@@ -21,7 +22,16 @@ jobs:
with: with:
version: latest version: latest
args: --timeout=5m args: --timeout=5m
- run: GOTOOLCHAIN=auto 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 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
vulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-go@main
with:
go-version-file: 'go.mod'
check-latest: true
- run: GOTOOLCHAIN=auto go install golang.org/x/vuln/cmd/govulncheck@latest
- run: govulncheck ./...