Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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 @@ -21,9 +21,6 @@ concurrency:
group: ${{ github.ref_name }}-lint
cancel-in-progress: true

env:
GOLANGCI_TIMEOUT: 10m0s

jobs:

lint:
Expand All @@ -32,7 +29,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 @@ -60,3 +60,5 @@ linters:
issues:
max-issues-per-linter: 0
max-same-issues: 0
run:
timeout: 5m