chore(CI): add separate prettier --check step (#51753)

This commit is contained in:
Oliver Eyton-Williams
2023-10-24 20:49:16 +02:00
committed by GitHub
parent 438fc8387b
commit cdc9b006be

View File

@@ -58,12 +58,18 @@ jobs:
echo 'SHOW_NEW_CURRICULUM=true' >> .env
cat .env
- name: Install node_modules
run: pnpm install
- name: Check formatting
run: |
pnpm prettier --check . || [ $? -eq 1 ] && printf "\nTip: Run 'pnpm run format' in your terminal to fix this.\n\n"
# The two prefixed installs are for the client update which are not,
# currently, built as workspaces.
- name: Lint Source Files
run: |
echo pnpm version $(pnpm -v)
pnpm install
pnpm run create:shared
npm i --prefix=curriculum-server
npm i --prefix=web