Skip to content
Merged
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
28 changes: 1 addition & 27 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
name: node-js
runs-on: ubuntu-24.04


steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -209,33 +210,6 @@ jobs:
working-directory: ./examples/inputs-outputs/typescript
run: |
pnpm test

test-webpack-example:
name: webpack
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
tool-cache: true

- name: Test Webpack Example on Chrome
uses: cypress-io/github-action@v6
with:
working-directory: ./examples/webpack
browser: chrome
start: npm start

#- name: Test Webpack Example on Firefox
#uses: cypress-io/github-action@v6
#with:
#working-directory: ./examples/webpack
#browser: firefox
#start: npm start
test-debugging-example:
name: debugging
runs-on: ubuntu-24.04
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,27 @@ jobs:
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@v4
- 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
5 changes: 3 additions & 2 deletions examples/vite/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cypress/videos
cypress/screenshots
dist/pipelines/
playwright-report/
test-results/
6 changes: 3 additions & 3 deletions examples/vite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ This example demonstrates how to configure Vite/Rollup to build a project that
uses an [ITK-Wasm](https://wasm.itk.org/) package.

More information can be found in the [example
documentation](https://docs.itk.org/projects/wasm/en/latest/typescript/distribution/esm.html).
documentation](https://docs.itk.org/projects/wasm/en/latest/typescript/distribution/vite.html).

## Run Locally

```
npm install
npm run start
npm start
```

And visit [http://localhost:8085/](http://localhost:8085/).
Expand All @@ -22,4 +22,4 @@ And visit [http://localhost:8085/](http://localhost:8085/).
npm install
npx playwright install --with-deps
npm test
```
```
6 changes: 5 additions & 1 deletion examples/webpack/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
cypress/videos/
dist/*.js
dist/*LICENSE*
dist/pipelines/
playwright-report/
test-results/
13 changes: 7 additions & 6 deletions examples/webpack/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
itk-webpack-example
===================
ITK-Wasm Webpack Example
========================

This example demonstrates how to configure Webpack to build a project that
uses [itk-wasm](https://wasm.itk.org/).
uses an [ITK-Wasm](https://wasm.itk.org/) package.

More information can be found in the [example
documentation](https://wasm.itk.org/examples/webpack.html).
documentation](https://docs.itk.org/projects/wasm/en/latest/typescript/distribution/webpack.html).

## Run Locally

```
npm install
npm run start
npm start
```

And visit [http://localhost:8686/](http://localhost:8686/).
Expand All @@ -19,6 +20,6 @@ And visit [http://localhost:8686/](http://localhost:8686/).

```
npm install
npm run build
npx playwright install --with-deps
npm test
```
13 changes: 0 additions & 13 deletions examples/webpack/cypress.config.js

This file was deleted.

17 changes: 0 additions & 17 deletions examples/webpack/cypress/e2e/load_data.cy.js

This file was deleted.

Loading
Loading