From cdc9b006bee42f9252ad793f6bf4bc0fee5bb432 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 24 Oct 2023 20:49:16 +0200 Subject: [PATCH] chore(CI): add separate prettier --check step (#51753) --- .github/workflows/node.js-tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js-tests.yml b/.github/workflows/node.js-tests.yml index e7fc89412f6..cec9f44ff0d 100644 --- a/.github/workflows/node.js-tests.yml +++ b/.github/workflows/node.js-tests.yml @@ -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