feat(api): decouple api from curriculum (#40703)

This commit is contained in:
Oliver Eyton-Williams
2021-02-22 07:53:59 +01:00
committed by GitHub
parent f4bbe3f34c
commit c077ffe4b9
172 changed files with 376 additions and 345 deletions

View File

@@ -51,6 +51,7 @@ jobs:
run: |
npm ci
npm run ensure-env
npm run build:curriculum
- name: Seed Database
run: npm run seed
@@ -60,9 +61,9 @@ jobs:
with:
record: ${{ env.CYPRESS_RECORD_KEY != 0 }}
build: npm run build
# this should mirror the production build, but for now we're just using the dev
# server and gatsby serve instead (the npm script serve:client needs updating!)
start: npm start
# this should mirror the production build, but for now we're using gatsby
# serve instead (the npm script serve:client needs updating!)
start: npm run start-ci
wait-on: http://localhost:8000
# the site builds in about 8 minutes, so there is currently 12 minutes of time
# left for testing.

View File

@@ -39,6 +39,7 @@ jobs:
run: |
npm ci
npm run ensure-env --if-present
npm run build:curriculum --if-present
npm run lint --if-present
test:
@@ -79,6 +80,7 @@ jobs:
run: |
npm ci
npm run ensure-env --if-present
npm run build:curriculum --if-present
- name: Run Tests
run: npm test