add an integration for github-pr-check with -fail-on-error
@@ -108,6 +108,12 @@ jobs:
cd ./_testdata/ && golint ./... | reviewdog -f=golint -diff="git diff" -fail-on-error || EXIT_CODE=$?
test ${EXIT_CODE} = 1
+ - name: Run reviewdog (github-pr-check with fail-on-error)
+ env:
+ REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ cd ./_testdata/ && golint ./... | reviewdog -f=golint -name=golint-pr-check-fail-on-error -reporter=github-pr-check -fail-on-error
+
golangci-lint:
if: github.event_name == 'pull_request'
name: runner / golangci-lint
