Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: use dam to download data #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Lint
run: pnpm lint

- name: Download test data
run: pnpm test:data:download

- name: Test with Chrome
uses: cypress-io/github-action@v5
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dist-ssr


test/data/
test/data.tar.gz
cypress/screenshots
cypress/videos
micromamba/
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
"lint:fix": "pnpm prettier --write . && pnpm eslint --fix .",
"setup-micromamba": "MICROMAMBA_ROOT_PATH=micromamba CREATE_ENVIRONMENT=true ENVIRONMENT_FILE=environment.yml LOG_LEVEL=info setup-micromamba",
"start-hypha": "pnpm setup-micromamba && ./micromamba/micromamba run -r micromamba -n itk-viewer-test hypha --host=127.0.0.1 --port=37580",
"test": "pnpm test:downloadData && concurrently -n \"hypha,cypress\" --success first -k \"pnpm start-hypha\" \"pnpm cy:component\"",
"test:ci": "pnpm test:downloadData && pnpm cy:component:ci",
"test:downloadData": "node test/downloadData.mjs",
"test": "pnpm test:data:download && concurrently -n \"hypha,cypress\" --success first -k \"pnpm start-hypha\" \"pnpm cy:component\"",
"test:ci": "pnpm test:data:download && pnpm cy:component:ci",
"test:data:pack": "dam pack test/data test/data.tar.gz",
"test:data:download": "dam download -v test/data test/data.tar.gz bafybeidbosxn5wpejig6n5z35jf7ypgxqnib3myp26fqthgu6opchqxruq https://github.com/Kitware/itk-vtk-viewer/releases/download/v14.35.1/itk-vtk-viewer-testing-data.tar.gz",
"cy:watch": "cypress open --component -b chrome",
"cy:component": "cypress run --component",
"cy:component:ci": "cypress run --component --record",
Expand All @@ -25,6 +26,7 @@
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@cypress/mount-utils": "^4.0.0",
"@itk-wasm/dam": "^1.0.1",
"@thewtex/setup-micromamba": "^1.6.0",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
Expand Down
Loading
Loading