name: Weekly # Checks that do not depend on a push: a new Go vulnerability advisory can land # on a dependency or on the toolchain while the code stands still. on: schedule: - cron: '17 6 * * 1' workflow_dispatch: concurrency: group: weekly cancel-in-progress: false env: GOCACHE: /opt/hostedtoolcache/go-build GOMODCACHE: /opt/hostedtoolcache/go-mod GOPATH: /opt/hostedtoolcache/gopath jobs: audit: name: Dependency audit runs-on: linux-arm64 steps: - uses: actions/checkout@v7 - uses: actions/setup-go@v6 with: go-version-file: go.mod - name: govulncheck run: | command -v govulncheck >/dev/null || go install golang.org/x/vuln/cmd/govulncheck@latest export PATH="$PATH:$(go env GOPATH)/bin" govulncheck ./... race: name: Tests (race detector, repeated) runs-on: linux-arm64 steps: - uses: actions/checkout@v7 - uses: actions/setup-go@v6 with: go-version-file: go.mod - run: go test -race -count=5 ./...