mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor(ci): lint with both values of SHOW_UPCOMING_CHANGES (#66128)
This commit is contained in:
committed by
GitHub
parent
f2a4a2593c
commit
a0a0236d69
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user