Skip to content

Update golangci-lint #39

Update golangci-lint

Update golangci-lint #39

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@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
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@e6875f831db61e6abffbd8df91a2eb6cd24b46c9
with:
path-to-profile: profile.cov
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
with:
cache: true
go-version: stable
- uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9
with:
version: v2.2.1