mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 03:03:06 -05:00
chore(CI): add separate prettier --check step (#51753)
This commit is contained in:
committed by
GitHub
parent
438fc8387b
commit
cdc9b006be
8
.github/workflows/node.js-tests.yml
vendored
8
.github/workflows/node.js-tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user