30 lines
550 B
YAML
30 lines
550 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Vet
|
|
run: go vet ./...
|
|
|
|
- name: Test
|
|
run: go test -race -count=1 ./...
|
|
|
|
- name: Staticcheck
|
|
run: go run honnef.co/go/tools/cmd/staticcheck@latest ./...
|
|
|
|
- name: Vulnerabilities
|
|
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...
|