chore: upgrade go 1.19.10 -> 1.21.0 #1561
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: PR linters, checks | |
# Triggers the workflow on push or pull request events | |
on: [push, pull_request] | |
permissions: read-all | |
concurrency: | |
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
build: | |
name: PR linters, checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.* | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Inject base sha and pr sha | |
run: | | |
GITHUB_BASE_SHA=${{ github.event.pull_request.base.sha }} | |
GITHUB_SHA=${{ github.sha }} | |
- name: Run make linters | |
run: | | |
make linters | |
- name: Run make checks | |
run: | | |
make checks |