doc: harvest configuration file from other location with docker run generate #4856
Workflow file for this run
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: Build, Test, Lint License | |
env: | |
GO_VERSION: "1.21.1" | |
on: | |
push: | |
branches: | |
- main | |
- 'release/**' | |
pull_request: | |
branches: | |
- main | |
- 'release/**' | |
jobs: | |
govulncheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
- run: govulncheck ./... | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -race -shuffle=on ./... | |
- name: Check code formatting using gofmt | |
uses: Jerome1337/[email protected] | |
license_check: | |
name: License check | |
if: '!github.event.deleted' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install wwhrd | |
env: | |
GO111MODULE: 'off' | |
run: go get -u github.com/frapposelli/wwhrd | |
- name: go mod vendor | |
env: | |
GO111MODULE: 'on' | |
run: go mod vendor | |
- name: wwhrd check | |
run: wwhrd check |