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 commit f1bd00fdba.

* Revert "test: enable testing for upcoming challenges"

This reverts commit d0409fef66.

* feat: test upcoming changes in separate job
This commit is contained in:
Oliver Eyton-Williams
2021-06-08 17:57:27 +02:00
committed by GitHub
parent 2db594d318
commit c69a1cb483

View File

@ -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