Skip to content

Commit

Permalink
Make source shellUtils to a separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed May 13, 2023
1 parent a7646ef commit f5d4082
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

- name: Load shell utils
run: source ./scripts/shellUtils.sh

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

- name: Lint JavaScript with ESLint
Expand All @@ -25,10 +28,9 @@ jobs:

- name: Verify there's no Prettier diff
run: |
source ./scripts/shellUtils.sh
npm run prettier -- --loglevel silent
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.'
error 'Error: Prettier diff detected! Please run `npm run prettier` and commit the changes.'
exit 1
fi

0 comments on commit f5d4082

Please sign in to comment.