Skip to content

Commit

Permalink
fix/lint-action: parity with make target
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Nov 16, 2023
1 parent f0ab20c commit 03cb911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/golangci_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2

- name: Run golangci-lint
run: find . -name "go.mod" -execdir $(go env GOPATH)/bin/golangci-lint run --tests=false --exclude-use-default --timeout=5m0s --out-format json > golangci-lint-results.json \;
run: docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v1.54.2 golangci-lint run --max-issues-per-linter 0 --max-same-issues 0 --out-format json > golangci-lint-results.json \;

- name: Check golangci-lint JSON report for errors
run: if jq -e '.Issues[]' golangci-lint-results.json > /dev/null; then exit 1; else echo "No issues found"; fi
Expand Down

0 comments on commit 03cb911

Please sign in to comment.