Skip to content

Commit 7f8b5e0

Browse files
committed
fix: add e2e test to main worflow
1 parent 215d2f9 commit 7f8b5e0

2 files changed

Lines changed: 24 additions & 30 deletions

File tree

.github/workflows/build.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,29 @@ env:
1313
IMAGE: nmrium
1414

1515
jobs:
16+
e2etest:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
project: [chromium, firefox, webkit]
21+
fail-fast: false
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-node@v3
25+
with:
26+
node-version: 16.x
27+
- name: Install dependencies
28+
run: npm ci
29+
- name: Install Playwright
30+
run: npx playwright install --with-deps
31+
- name: Build test application
32+
env:
33+
NODE_OPTIONS: '--max_old_space_size=4096'
34+
run: npm run build-no-minify
35+
- name: Run E2E tests on ${{ matrix.project }}
36+
run: npx playwright test --project ${{ matrix.project }}
37+
continue-on-error: ${{ matrix.project == 'webkit' }}
38+
1639
lint:
1740
runs-on: ubuntu-latest
1841
steps:
@@ -33,7 +56,7 @@ jobs:
3356
name: Deploy to prod
3457
if: github.ref == 'refs/heads/prod-helm-deploy'
3558
runs-on: ubuntu-latest
36-
needs: lint
59+
needs: [lint, e2etest]
3760
steps:
3861
- name: Checkout
3962
uses: actions/checkout@v2

.github/workflows/e2e.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)