feat: upgrade go 1.20 -> 1.21 #22
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 | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
lint: | |
name: GolangCI Lint | |
runs-on: ubuntu-latest | |
container: golangci/golangci-lint:v1.54-alpine | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run linter | |
run: golangci-lint run | |
tests: | |
name: Run unit tests with the race detector enabled | |
runs-on: ubuntu-latest | |
container: golang:1.21-alpine | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Install GCC and C libraries required by the race detector | |
run: apk add --update gcc musl-dev | |
- name: Run unit tests | |
run: go test -v -race ./... |