build(deps-dev): bump vite from 6.2.7 to 6.3.6 #213
Workflow file for this run
This file contains hidden or 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: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test-esm-example: | |
defaults: | |
run: | |
working-directory: ./examples/esm | |
timeout-minutes: 60 | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npm run test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
test-vite-example: | |
defaults: | |
run: | |
working-directory: ./examples/vite | |
timeout-minutes: 60 | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npm run test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
test-webpack-example: | |
defaults: | |
run: | |
working-directory: ./examples/webpack | |
timeout-minutes: 60 | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npm run test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
test-itk-wasm: | |
name: itk-wasm browser tests | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
with: | |
large-packages: false | |
tool-cache: true | |
- name: Pull latest Docker images | |
run: | | |
./src/docker/pull.sh --no-debug | |
- name: Install | |
uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: pnpm | |
- name: Install dependencies for itk-wasm | |
run: pnpm install | |
working-directory: packages/core/typescript/itk-wasm | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
working-directory: packages/core/typescript/itk-wasm | |
- name: Build itk-wasm | |
run: | | |
pnpm run --aggregate-output --filter itk-wasm build | |
- name: Build @itk-wasm/demo-app | |
run: | | |
pnpm run --aggregate-output --filter '@itk-wasm/demo-app' build | |
- name: Build build:gen:typescript | |
run: | | |
pnpm run --aggregate-output build:gen:typescript | |
- name: Build itk-wasm | |
run: | | |
pnpm run --aggregate-output --filter itk-wasm build | |
# Test deps | |
pnpm run --aggregate-output --filter "@itk-wasm/demo-app" build | |
pnpm run --aggregate-output --filter "@itk-wasm/mesh-io" build | |
pnpm run --aggregate-output --filter "@itk-wasm/transform-io" build | |
pnpm run --aggregate-output --filter "@itk-wasm/image-io" build | |
- name: Run Playwright tests | |
working-directory: ./packages/core/typescript/itk-wasm | |
run: pnpm run test:browser | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report-itk-wasm | |
path: packages/core/typescript/itk-wasm/playwright-report/ | |
retention-days: 30 | |
test-packages: | |
name: browser tests | |
runs-on: ubuntu-24.04 | |
strategy: | |
max-parallel: 3 | |
matrix: | |
package: [compare-images, compare-meshes, compress-stringify, dicom, downsample, image-io, mesh-io, transform-io] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
with: | |
large-packages: false | |
tool-cache: true | |
- uses: nick-fields/retry@v3 | |
name: Pull latest Docker images | |
with: | |
max_attempts: 5 | |
timeout_minutes: 10 | |
command: ./src/docker/pull.sh --no-debug | |
- name: Install | |
uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: pnpm | |
- name: pnpm install | |
run: pnpm install --frozen-lockfile | |
- name: Build itk-wasm | |
run: | | |
pnpm run --aggregate-output --filter itk-wasm build | |
- name: Build @itk-wasm/demo-app | |
run: | | |
pnpm run --aggregate-output --filter '@itk-wasm/demo-app' 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: Install Playwright Browsers | |
working-directory: packages/${{ matrix.package }}/typescript | |
run: pnpm exec playwright install --with-deps | |
- name: Run Playwright tests | |
working-directory: packages/${{ matrix.package }}/typescript | |
run: pnpm run test:browser | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report-${{ matrix.package }} | |
path: packages/${{ matrix.package }}/typescript/playwright-report/ | |
retention-days: 30 | |
test-hello-world-example: | |
defaults: | |
run: | |
working-directory: ./examples/hello-world | |
timeout-minutes: 60 | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
- name: Pull latest Docker images | |
working-directory: ./ | |
run: | | |
./src/docker/pull.sh --no-debug | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
- name: Install | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: true | |
- name: Build itk-wasm | |
run: | | |
pnpm run --aggregate-output --filter itk-wasm build | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm run build | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
- name: Run Playwright tests | |
run: pnpm run test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report-hello-world | |
path: playwright-report/ | |
retention-days: 30 |