test: enable testing for upcoming challenges (#42360)
* test: enable testing for upcoming challenges * fix: enable SHOW_UPCOMING_CHANGES during test * Revert "fix: enable SHOW_UPCOMING_CHANGES during test" This reverts commitf1bd00fdba
. * Revert "test: enable testing for upcoming challenges" This reverts commitd0409fef66
. * feat: test upcoming changes in separate job
This commit is contained in:
committed by
GitHub
parent
2db594d318
commit
c69a1cb483
45
.github/workflows/node.js-tests.yml
vendored
45
.github/workflows/node.js-tests.yml
vendored
@ -89,6 +89,51 @@ jobs:
|
||||
- name: Run Tests
|
||||
run: npm test
|
||||
|
||||
test-upcoming:
|
||||
name: Test Upcoming Changes
|
||||
needs: lint
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x]
|
||||
|
||||
steps:
|
||||
- name: Checkout Source Files
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Set Environment variables
|
||||
run: |
|
||||
cp sample.env .env
|
||||
echo 'SHOW_UPCOMING_CHANGES=true' >> .env
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
npm ci
|
||||
npm run ensure-env
|
||||
npm run build:curriculum
|
||||
|
||||
- name: Run Tests
|
||||
run: npm test
|
||||
|
||||
test-localization:
|
||||
name: Localize
|
||||
needs: lint
|
||||
|
Reference in New Issue
Block a user