Skip to content

Commit 855ecdf

Browse files
ci(github): rename e2e to integration test
1 parent b884239 commit 855ecdf

2 files changed

Lines changed: 26 additions & 32 deletions

File tree

.github/workflows/e2e.yml

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

.github/workflows/test.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permissions:
55
contents: read
66

77
jobs:
8-
test:
8+
unit:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout repository
@@ -30,3 +30,28 @@ jobs:
3030

3131
- name: Run module tests
3232
run: npm run test:esm
33+
34+
integration:
35+
runs-on: ubuntu-latest
36+
strategy:
37+
matrix:
38+
browser: [chromium, firefox, webkit]
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v6
43+
44+
- name: Use Node.js
45+
uses: actions/setup-node@v6
46+
with:
47+
cache: npm
48+
node-version-file: .nvmrc
49+
50+
- name: Install dependencies
51+
run: npm ci --prefer-offline
52+
53+
- name: Install Playwright browsers
54+
run: npx playwright install ${{ matrix.browser == 'webkit' && '--with-deps' || '' }} ${{ matrix.browser }}
55+
56+
- name: Run browser tests on ${{ matrix.browser }}
57+
run: npx vitest run --config vitest.browser.config.mts --browser=${{ matrix.browser }}

0 commit comments

Comments
 (0)