Skip to content

Commit

Permalink
Bump golangci/golangci-lint-action from 2 to 3 (#244)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luca Comellini <luca.com@gmail.com>
  • Loading branch information
dependabot[bot] and lucacome committed Feb 25, 2022
1 parent 4529537 commit 4b18c9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
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

0 comments on commit 4b18c9a

Please sign in to comment.