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
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
## How it was verified

- [ ] `pnpm compile` passes
- [ ] `pnpm test` passes (add/adjust tests when touching `utils/`)
- [ ] `pnpm build` produces a clean bundle
- [ ] Tested in DevTools (extension reloaded + DevTools reopened)
- [ ] If output format changed: example TOON export attached below
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
pull_request:
push:
branches: [main]

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 10

- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm wxt prepare # pnpm 10 blocks postinstall scripts
- run: pnpm compile # tsc --noEmit
- run: pnpm test # vitest run (42 tests over utils/)
- run: pnpm build # the extension must still bundle cleanly
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ Two invariants to respect:

```bash
pnpm compile # tsc --noEmit, must pass
pnpm test # vitest, covers everything under utils/
pnpm build # must produce a clean .output/chrome-mv3
pnpm landing # optional: rebuilds the landing demo from the fresh bundle
```

There is no test runner wired up yet; if you add logic to `utils/`, a small standalone repro in the PR description is appreciated.
CI runs the same three checks on every pull request. If you touch `utils/`, add or adjust the matching `*.test.ts` next to it: the compaction markers, redaction rules and sourcemap resolution are exactly the kind of logic that regresses silently.

## Pull requests

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
"zip": "wxt zip",
"zip:firefox": "wxt zip -b firefox",
"compile": "tsc --noEmit",
"postinstall": "wxt prepare"
"postinstall": "wxt prepare",
"test": "vitest run"
},
"devDependencies": {
"@resvg/resvg-js": "^2.6.2",
"esbuild": "^0.28.1",
"typescript": "^5.9.3",
"vitest": "^4.1.8",
"wxt": "^0.20.26"
},
"dependencies": {
Expand Down
Loading
Loading