mirror of
https://github.com/vee1e/subidx.git
synced 2026-09-01 17:57:13 +00:00
go-package-input was silently ignored as an unexpected input, so the intended ./... package argument never reached govulncheck.
40 lines
849 B
YAML
40 lines
849 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Pinned by commit SHA: tags are mutable.
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
|
|
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
- name: Build
|
|
run: go build ./...
|
|
|
|
- name: Vet
|
|
run: go vet ./...
|
|
|
|
- name: Test
|
|
run: go test -race -count=1 ./...
|
|
|
|
- name: Govulncheck
|
|
uses: golang/govulncheck-action@032d45514ae346b1db93c04b0c90b841c370344f # v1
|
|
with:
|
|
go-version-input: ""
|
|
go-package: ./...
|