Skip to content

Commit

Permalink
Enforce there's no prettier diff in PR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed May 12, 2023
1 parent 32662bf commit e641afd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ jobs:

- name: Lint shell scripts with ShellCheck
run: npm run shellcheck

- name: Verify there's no Prettier diff
run: |
source Expensify/App/scripts/shellUtils.sh
npm run prettier
git diff --name-only --exit-code || error 'Error: Prettier diff detected! Please run \`npm run prettier\` and commit the changes.'

0 comments on commit e641afd

Please sign in to comment.