Reviewdog: Fail on error

This commit is contained in:
Marc Rousavy 2021-03-08 19:34:46 +01:00
parent bfba6a95ee
commit fcda8dd75a

View File

@ -54,7 +54,7 @@ jobs:
run: yarn install --frozen-lockfile --cwd example run: yarn install --frozen-lockfile --cwd example
- name: Run TypeScript - name: Run TypeScript
run: yarn typescript | reviewdog -f=tsc -reporter=github-pr-review run: yarn typescript | reviewdog -f=tsc -reporter=github-pr-review -fail-on-error
env: env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -63,3 +63,4 @@ jobs:
with: with:
reporter: github-pr-review reporter: github-pr-review
eslint_flags: '--ext .js,.ts,.jsx,.tsx src' eslint_flags: '--ext .js,.ts,.jsx,.tsx src'
fail_on_error: true