Skip to content

Update golangci-lint #37

Update golangci-lint

Update golangci-lint #37

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- master
tags:
- v*
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- stable
- oldstable
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
with:
cache: true
go-version: ${{ matrix.go-version }}
- name: Build
run: go build ./...
- name: Test
run: go test -covermode=atomic -coverprofile=profile.cov -race ./...
- uses: shogo82148/actions-goveralls@7b1bd2871942af030d707d6574e5f684f9891fb2
with:
path-to-profile: profile.cov
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
with:
cache: true
go-version: stable
- uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
with:
version: v1.62.2