Skip to content

Commit

Permalink
Added linenumber in CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MayukhSobo committed May 18, 2024
1 parent 62cc863 commit 08b81af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
if: github.event_name == 'pull_request'
uses: golangci/golangci-lint-action@v3
with:
args: --new-from-rev ${{ github.event.pull_request.base.sha }} --config .golangci.yaml || exit 1
args: --new-from-rev ${{ github.event.pull_request.base.sha }} --config .golangci.yaml --out-format=colored-line-number
version: ${{ env.GOLANGCI_LINT_VERSION }}

- name: Run golangci-lint on main branch push
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: golangci/golangci-lint-action@v3
with:
args: --config .golangci.yaml || exit 1
args: --config .golangci.yaml --out-format=colored-line-number || exit 1
version: ${{ env.GOLANGCI_LINT_VERSION }}

0 comments on commit 08b81af

Please sign in to comment.