Skip to content

Commit 967a7e0

Browse files
committed
update: dynamical running of notebooks healthchecks
1 parent 79b8e6d commit 967a7e0

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

.github/workflows/cicd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737

3838
- name: Docker build and test
3939
uses: ./.github/workflows/docker-build-test
40+
with:
41+
run-test-environment: ${{ github.ref_name != 'main' && 'USE_JUPYTERLITE_DEV_URL=true NPM_RUN_COMMAND=test:healthcheck' || '' }}
4042

4143
- name: Validate app dockerfile
4244
uses: ./actions/docker/validate

tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress open",
8-
"test:headless": "./run-tests.sh",
8+
"test:headless": "export TAGS=${TAGS:-'not @ignore and not @notebook_healthcheck'}; CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress run -e TAGS=\"$TAGS\"",
99
"test:healthcheck": "TAGS='not @ignore and @notebook_healthcheck' npm run test:headless",
1010
"lint": "npx eslint cypress && prettier --write cypress"
1111
},

tests/run-tests.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)