chore(deps): update Go to v1.21.0, update golang.org/x/* #84
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
# GitHub Actions workflow to build, test and publish the project. | |
name: "Go" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
GO_VERSION: "1.21.x" | |
jobs: | |
govulncheck: | |
name: "Vulnerability Check" | |
runs-on: "ubuntu-latest" | |
permissions: | |
contents: read | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v3 | |
- name: "Set up Go ${{ env.GO_VERSION }}" | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "${{ env.GO_VERSION }}" | |
cache: true | |
- name: "Install" | |
run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: "Run" | |
run: govulncheck ./... | |
build: | |
name: "Build" | |
runs-on: "ubuntu-latest" | |
permissions: | |
contents: read | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v3 | |
- name: "Set up Go ${{ env.GO_VERSION }}" | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "${{ env.GO_VERSION }}" | |
cache: true | |
- name: "Download dependencies" | |
run: go mod download | |
- name: "Verify dependencies" | |
run: go mod verify | |
- name: "Build" | |
run: go build -v ./... | |
- name: "Test" | |
run: go test -v ./... | |
- name: "Test (race)" | |
run: go test -race -v ./... | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json |