Go 1.21 upgrade #1135
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: | |
push: | |
branches: [main] | |
pull_request: | |
release: | |
env: | |
go-version: 1.21 | |
jobs: | |
check-copyright: | |
name: Copyright | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Authors | |
run: .scripts/check-notice-authors.sh origin/main | |
vet: | |
name: Vetting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Check vanity import | |
run: .scripts/check-vanity-imports.sh $GITHUB_WORKSPACE | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.go-version }} | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.56.2 | |
- name: Lint proto files | |
uses: plexsystems/[email protected] | |
with: | |
configDirectory: . | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.go-version }} | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Unit Tests | |
run: go test -timeout 60s ./... | |
race-tests: | |
name: Race Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.go-version }} | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-race | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Unit Race Tests | |
run: go test -timeout 120s -race -gcflags=all=-d=checkptr=0 ./... |