Bump go version to 1.21 #81
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: CI | |
on: [pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
container: docker.io/library/golang:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Workaround for dubious ownership issue | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Verify go.mod | |
run: go mod tidy && git diff --exit-code | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
container: docker.io/library/golang:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Workaround for dubious ownership issue | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Go Build | |
run: make build | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
container: docker.io/library/golang:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Tests | |
run: go test -v ./... |