Skip to content

Commit 41fe06c

Browse files
committed
ci: joint testing with miso-todomvc
1 parent c951896 commit 41fe06c

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
FLAVOUR: ${{ matrix.flavour }}
5252
5353
- run: |
54-
wasm32-wasi-cabal build jsaddle-wasm --dry-run
54+
wasm32-wasi-cabal build miso-todomvc --dry-run
5555
5656
- uses: actions/cache@v4
5757
with:
@@ -61,7 +61,17 @@ jobs:
6161
~/.ghc-wasm/.cabal/store
6262
6363
- run: |
64-
wasm32-wasi-cabal build jsaddle-wasm
64+
cp -r $(find dist-newstyle -type d -name static) public
65+
wasm32-wasi-cabal install miso-todomvc --install-method=copy --installdir=public
66+
$(wasm32-wasi-ghc --print-libdir)/post-link.mjs --input public/app.wasm --output public/ghc_wasm_jsffi.js
67+
68+
- run: |
69+
git clone --ref-format=reftable --depth=1 https://github.com/haskell-wasm/playwright.git
70+
pushd playwright/examples/todomvc
71+
npm install
72+
npx playwright install --with-deps --no-shell
73+
TODOMVC_DIST_DIR=${{ github.workspace }}/public npx playwright test --reporter=list --workers=$(nproc)
74+
popd
6575
6676
ci-native:
6777
runs-on: ubuntu-24.04

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
dist-newstyle/
22
cabal.project.local
3+
public

cabal.project

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
packages: .
22

3+
source-repository-package
4+
type: git
5+
location: https://github.com/haskell-miso/miso-todomvc.git
6+
7+
source-repository-package
8+
type: git
9+
location: https://github.com/dmjio/miso.git
10+
311
tests: True
412

513
package *
@@ -21,3 +29,5 @@ package aeson
2129

2230
package vector
2331
flags: -boundschecks
32+
33+
allow-newer: all:jsaddle-wasm

0 commit comments

Comments
 (0)