@@ -50,41 +50,15 @@ jobs:
5050 id : soft-release
5151 run : vp dlx pkg-pr-new publish './packages/*' # TODO disabled only for AI branch--compact
5252
53- e2e-build :
54- name : " E2E Build"
55- runs-on : ubuntu-latest
56- timeout-minutes : 30
57- steps :
58- - uses : actions/checkout@v6
59- with :
60- fetch-depth : 100
61-
62- - uses : voidzero-dev/setup-vp@v1
63- with :
64- node-version-file : " .node-version"
65- cache : true
66-
67- - name : Install dependencies
68- run : vp install
69-
70- # Example apps mounted by the e2e tests import the @blocknote/* packages'
71- # built dist.
72- - name : Build packages
73- run : vp run --filter ./packages build
74-
75- - name : Upload package dist
76- uses : actions/upload-artifact@v7
77- with :
78- name : e2e-package-dist
79- path : packages/*/dist
80- retention-days : 1
81-
8253 e2e :
8354 # Vitest Browser Mode runs in the Playwright Linux container — the same
8455 # environment as the local Docker run — so behaviour matches local dev.
56+ # The suite resolves every `@blocknote/*` import to its `src/` via the
57+ # aliases in `tests/vite.config.browser.ts` (vite transpiles the package
58+ # sources on the fly), so the packages do NOT need to be built to `dist`
59+ # first — `vp install` + the checked-out sources are enough.
8560 name : " E2E - ${{ matrix.browser }}"
8661 runs-on : ubuntu-latest
87- needs : e2e-build
8862 timeout-minutes : 30
8963 container :
9064 image : mcr.microsoft.com/playwright:v1.51.1-noble
@@ -105,12 +79,6 @@ jobs:
10579 - name : Install dependencies
10680 run : vp install
10781
108- - name : Download package dist
109- uses : actions/download-artifact@v8
110- with :
111- name : e2e-package-dist
112- path : packages
113-
11482 # No preview server: Vitest Browser Mode serves the tests + mounted example
11583 # apps itself. `--browser` selects this matrix shard's browser.
11684 - name : Run e2e tests (${{ matrix.browser }})
0 commit comments