Skip to content

Commit bffa9c1

Browse files
author
Jonathan D.A. Jewell
committed
Add CI coverage for WASM build and core fill tests
1 parent eb08ee2 commit bffa9c1

2 files changed

Lines changed: 35 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,26 @@ on:
66
pull_request:
77

88
jobs:
9-
rescript-build:
9+
core-fill-tests:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: denoland/setup-deno@v2
1414
with:
1515
deno-version: v2.x
16-
- run: deno task build:res
16+
- uses: dtolnay/rust-toolchain@stable
17+
- run: deno task test:core-fill
18+
19+
extension-build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: denoland/setup-deno@v2
24+
with:
25+
deno-version: v2.x
26+
- uses: dtolnay/rust-toolchain@stable
27+
- uses: jetli/wasm-pack-action@v0.4.0
28+
with:
29+
version: "latest"
30+
- run: deno task build:wasm
31+
- run: deno task build

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,24 @@ deno task build:wasm
4242
deno task dev
4343
```
4444

45+
5. Run core fill fixture tests (error taxonomy + AcroForm writeback):
46+
47+
```bash
48+
deno task test:core-fill
49+
```
50+
4551
## Notes
4652

47-
- The initial Rust implementation is a compile-safe skeleton that returns deterministic placeholder blocks.
48-
- OCR and robust PDF writeback are intentionally staged for follow-up milestones.
53+
- Rust `fill_blocks` now performs AcroForm-aware writeback for text/select and button widgets, and emits structured taxonomy errors (`code`, `message`, `context`).
54+
- Popup/background/content surfaces preserve taxonomy codes from the Rust WASM boundary.
4955
- Source files include SPDX headers targeting AGPL + Palimpsest exception.
56+
57+
## Firefox troubleshooting
58+
59+
- If `deno task dev` fails with `ECONNREFUSED 127.0.0.1:<port>`, verify Firefox is installed and runnable.
60+
- Close stale Firefox instances launched by prior `web-ext` sessions, then retry `deno task dev`.
61+
- You can run `web-ext` directly with an explicit binary when needed:
62+
63+
```bash
64+
deno run -A npm:web-ext run --source-dir dist --firefox /usr/bin/firefox
65+
```

0 commit comments

Comments
 (0)