-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And remove some unused top level configuration files. itkConfig.js is out. ci: update for pnpm workspace
- Loading branch information
Showing
154 changed files
with
2,386 additions
and
55,440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,97 @@ | ||
name: Cypress Tests | ||
name: Browser Tests | ||
|
||
on: [push,pull_request] | ||
|
||
defaults: | ||
run: | ||
shell: bash -leo pipefail {0} {0} | ||
|
||
jobs: | ||
|
||
test-cypress: | ||
name: itk-wasm browser tests | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
max-parallel: 3 | ||
matrix: | ||
package: [compress-stringify, compare-images] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
large-packages: false | ||
|
||
- uses: actions/setup-node@v3 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18.16' | ||
node-version: '20' | ||
|
||
- name: Install | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: true | ||
|
||
- name: Build itk-wasm | ||
run: | | ||
pnpm run --aggregate-output --filter itk-wasm build | ||
- name: Build build:gen:typescript | ||
run: | | ||
pnpm run --aggregate-output --filter "@itk-wasm/${{ matrix.package }}-build..." build:gen:typescript | ||
- name: Build typescript | ||
run: | | ||
npm ci | ||
pnpm install | ||
# Build the generated TypeScript package | ||
pnpm run --aggregate-output --filter "@itk-wasm/${{ matrix.package }}..." build:tsc | ||
pnpm run --aggregate-output --filter "@itk-wasm/${{ matrix.package }}" build | ||
- name: Build | ||
- name: Download test data | ||
run: | | ||
npm run build | ||
pnpm run --aggregate-output --filter "@itk-wasm/${{ matrix.package }}-build" test:data:download | ||
- name: Test with Chrome | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
browser: chrome | ||
command: npm run test:chrome | ||
working-directory: packages/${{ matrix.package }}/typescript | ||
install: false | ||
start: pnpm start | ||
config: video=true | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
- name: Test itk-wasm with Chrome | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
name: cypress-screenshots | ||
path: cypress/screenshots | ||
browser: chrome | ||
working-directory: packages/core/typescript/itk-wasm | ||
install: false | ||
start: pnpm start | ||
config: video=true | ||
wait-on: 'http://localhost:5173' | ||
wait-on-timeout: 360 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: cypress-videos | ||
path: cypress/videos | ||
path: packages/${{ matrix.package }}/typescript/cypress/videos | ||
if-no-files-found: ignore | ||
|
||
#- name: Test with Firefox | ||
#uses: cypress-io/github-action@v6 | ||
#with: | ||
#browser: firefox | ||
#command: npm run test:firefox | ||
- name: Test with Firefox | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
browser: firefox | ||
working-directory: packages/${{ matrix.package }}/typescript | ||
install: false | ||
start: pnpm start | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: cypress-screenshots | ||
path: cypress/screenshots | ||
path: packages/${{ matrix.package }}/typescript/cypress/screenshots | ||
if-no-files-found: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.