build(deps): bump follow-redirects from 1.15.2 to 1.15.4 in /examples/hello-world #1462
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
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, dicom, mesh-io, image-io] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
with: | |
large-packages: false | |
- uses: actions/setup-node@v4 | |
with: | |
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: | | |
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: Download test data | |
run: | | |
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 | |
working-directory: packages/${{ matrix.package }}/typescript | |
install: false | |
start: pnpm start | |
config: video=true | |
- name: Test itk-wasm with Chrome | |
uses: cypress-io/github-action@v6 | |
with: | |
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: packages/${{ matrix.package }}/typescript/cypress/videos | |
if-no-files-found: ignore | |
- name: Test with Firefox | |
if: ${{ matrix.package != 'dicom' }} | |
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: packages/${{ matrix.package }}/typescript/cypress/screenshots | |
if-no-files-found: ignore |