Skip to content

Commit

Permalink
fix exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed May 12, 2023
1 parent e59beee commit 1ec0e06
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ jobs:

- uses: Expensify/App/.github/actions/composite/setupNode@main

- name: Lint JavaScript with ESLint
run: npm run lint
env:
CI: true

- name: Lint shell scripts with ShellCheck
run: npm run shellcheck
# - name: Lint JavaScript with ESLint
# run: npm run lint
# env:
# CI: true
#
# - name: Lint shell scripts with ShellCheck
# run: npm run shellcheck

- name: Verify there's no Prettier diff
run: |
source ./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.'
if ! git diff --name-only --exit-code; then
# shellcheck disable=SC2016
echo 'Error: Prettier diff detected! Please run `npm run prettier` and commit the changes.'
exit 1
fi

0 comments on commit 1ec0e06

Please sign in to comment.