Skip to content

chore: upgrade go and golangci-lint versions #69

chore: upgrade go and golangci-lint versions

chore: upgrade go and golangci-lint versions #69

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ^1.21
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.0
tests:
runs-on: ubuntu-18.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: go test -v -covermode=count -coverprofile=coverage.out ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
tests_race:
runs-on: ubuntu-18.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test Race
run: go test -cpu=2 -race -v ./...