Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump golangci/golangci-lint-action from 2 to 3 #244

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ defaults:
run:
shell: bash

env:
GOLANGCI_TIMEOUT: 10m0s

jobs:

lint:
Expand All @@ -27,7 +24,12 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Lint Code
uses: golangci/golangci-lint-action@v2
- name: Output Variables
id: vars
run: echo "::set-output name=go_version::$(grep "go 1." go.mod | cut -d " " -f 2)"
- name: Setup Golang Environment
uses: actions/setup-go@v2
with:
args: --timeout ${{ env.GOLANGCI_TIMEOUT }}
go-version: ${{ steps.vars.outputs.go_version }}
- name: Lint Code
uses: golangci/golangci-lint-action@v3
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ linters:
issues:
max-issues-per-linter: 0
max-same-issues: 0
run:
timeout: 5m