Merge pull request #403 from domainr/dependabot/github_actions/action… #657
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: Go | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: # Enables the web UI manual trigger | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4.2.1 | |
with: | |
submodules: recursive | |
- name: Set up Go | |
uses: actions/setup-go@v5.1.0 | |
with: | |
go-version: ^1 | |
- name: Vet Go code | |
run: go vet ./... | |
- name: govulncheck | |
uses: golang/govulncheck-action@v1.0.4 | |
with: | |
cache: false | |
repo-checkout: false | |
- name: Run Go tests | |
run: go test -mod=readonly -v -race ./... | |
- name: Verify repo is unchanged | |
run: git diff --exit-code HEAD |