From e641afd0eed624c52504768980b4bdbcfe183359 Mon Sep 17 00:00:00 2001 From: rory Date: Thu, 11 May 2023 22:34:01 -0700 Subject: [PATCH] Enforce there's no prettier diff in PR checks --- .github/workflows/lint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a6562bbef58c..9ea309ce0afd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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.'