Skip to content

Commit a9fc195

Browse files
committed
feat: add GitHub Actions workflow for testing with Node.js
1 parent 1c40055 commit a9fc195

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Run Tests (Node.js ${{ matrix.node-version }})
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [20, 22, 24]
19+
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@v5
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
27+
- name: Setup Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v6
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
32+
- name: Install Dependencies
33+
run: pnpm i
34+
35+
- name: Install Playwright Browsers
36+
run: pnpm --filter @repo/elements exec playwright install --with-deps chromium
37+
38+
- name: Run Tests
39+
run: pnpm test

0 commit comments

Comments
 (0)