Skip to content

Commit

Permalink
chore: Add line numbers for lint output (#5247)
Browse files Browse the repository at this point in the history
* fix(github): Add line numbers for lint output

* correctional message check

* update messaging
  • Loading branch information
simar7 authored Sep 28, 2023
1 parent 0ccbb4f commit 0c08dde
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,20 @@ jobs:
if: matrix.operating-system == 'ubuntu-latest'

- name: Lint
id: lint
uses: golangci/[email protected]
with:
version: v1.54
args: --deadline=30m
args: --deadline=30m --out-format=line-number
skip-cache: true # https://github.com/golangci/golangci-lint-action/issues/244#issuecomment-1052197778
if: matrix.operating-system == 'ubuntu-latest'

- name: Check if linter failed
run: |
echo "Linter failed, running 'mage lint:fix' might help to correct some errors"
exit 1
if: ${{ failure() && steps.lint.conclusion == 'failure' }}

- name: Install tools
uses: aquaproj/[email protected]
with:
Expand Down

0 comments on commit 0c08dde

Please sign in to comment.