update readme with v2 paths (#416) #966
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable # https://golang.org/dl/ | |
- name: Install govulncheck | |
run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: Hadolint | |
uses: hadolint/[email protected] | |
- name: Goreleaser Check | |
uses: goreleaser/[email protected] | |
with: | |
args: check | |
- name: Go Mod Tidy | |
run: test -z $(go mod tidy) | |
- name: Lint | |
uses: golangci/[email protected] | |
- name: Test | |
run: go test -race -cover -v ./... | |
- name: Run govulncheck | |
run: govulncheck ./... |