Skip to content

Commit e9589f3

Browse files
committed
fix: fix action
1 parent 1502e19 commit e9589f3

5 files changed

Lines changed: 28 additions & 4 deletions

File tree

.github/workflows/hourly-tests.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14-
test:
14+
unit-tests:
15+
name: Unit Tests (Node ${{ matrix.node-version }})
1516
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
node-version: [16.x, 18.x, 20.x, 22.x, 24.x]
1620

1721
steps:
1822
- name: Checkout code
1923
uses: actions/checkout@v3
2024

21-
- name: Setup Node.js
25+
- name: Setup Node.js ${{ matrix.node-version }}
2226
uses: actions/setup-node@v3
2327
with:
24-
node-version: '18'
28+
node-version: ${{ matrix.node-version }}
2529
cache: 'yarn'
2630

2731
- name: Install dependencies
@@ -30,6 +34,24 @@ jobs:
3034
- name: Run unit tests
3135
run: yarn test:unit
3236

37+
e2e-tests:
38+
name: E2E Tests
39+
runs-on: ubuntu-latest
40+
needs: unit-tests
41+
42+
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@v3
45+
46+
- name: Setup Node.js
47+
uses: actions/setup-node@v3
48+
with:
49+
node-version: '20'
50+
cache: 'yarn'
51+
52+
- name: Install dependencies
53+
run: yarn install
54+
3355
- name: Install Playwright browsers
3456
run: npx playwright install --with-deps chromium
3557

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ This repository uses GitHub Actions to run tests automatically:
5656

5757
- Tests run hourly to ensure continuous compatibility
5858
- Tests run on every push to the main branch
59+
- Unit tests run on multiple Node.js versions (16.x, 18.x, 20.x)
60+
- E2E tests run after unit tests pass
5961
- Manual test runs can be triggered from the Actions tab in GitHub
6062

6163
Test results and artifacts are stored for 7 days and can be downloaded from the GitHub Actions workflow runs.
89.6 KB
Loading

0 commit comments

Comments
 (0)