diff --git a/.github/workflows/node.js-tests.yml b/.github/workflows/node.js-tests.yml index ad4c411b489..c41b2fced92 100644 --- a/.github/workflows/node.js-tests.yml +++ b/.github/workflows/node.js-tests.yml @@ -68,7 +68,6 @@ jobs: - name: Set Environment variables run: | sed '/^[[:space:]]*#/d; /^$/d' sample.env >> $GITHUB_ENV - cat sample.env - name: Install node_modules run: pnpm install @@ -77,13 +76,21 @@ jobs: 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 lint + # This is populate the cache, otherwise local runs with upcoming changes + # will not benefit. + - name: Set UPCOMING_CHANGES + run: | + echo 'SHOW_UPCOMING_CHANGES=true' >> $GITHUB_ENV + + - name: Lint Upcoming Changes + run: | + pnpm lint + # DONT REMOVE THIS JOB. # TODO: Refactor and use re-usable workflow and shared artifacts build: