fix(ci): include web client in paired e2e artifact

This commit is contained in:
Brennan Benson
2026-07-30 22:04:08 -07:00
parent 9c89902fd9
commit d627d6d3c1
2 changed files with 17 additions and 4 deletions
+7 -4
View File
@@ -64,11 +64,14 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
# Why: building once avoids five parallel electron-vite builds inside
# Playwright globalSetup, which otherwise contends for CPU/RAM on OSS
# runners before the sharded tests even start.
# Why: building here avoids parallel builds inside Playwright globalSetup;
# paired-browser specs also need the standalone web bundle.
- name: Build Electron app for E2E
run: npx electron-vite build --mode e2e
env:
VITE_EXPOSE_STORE: 'true'
run: |
npx electron-vite build --mode e2e
pnpm run build:web
- name: Upload E2E build output
uses: actions/upload-artifact@v7
@@ -34,4 +34,14 @@ describe('release E2E dispatch contract', () => {
expect(refInput.type).toBe('string')
expect(refInput.required).toBe(false)
})
it('includes the paired-runtime web client in the shared E2E build artifact', () => {
const buildStep = e2eWorkflow.jobs.build.steps.find(
(step) => step.name === 'Build Electron app for E2E'
)
expect(buildStep.run).toContain('electron-vite build --mode e2e')
expect(buildStep.env.VITE_EXPOSE_STORE).toBe('true')
expect(buildStep.run).toContain('pnpm run build:web')
})
})