Skip to content

Commit 1d6b729

Browse files
committed
Running unit tests on CI
1 parent 6fb58a0 commit 1d6b729

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Playwright tests
1+
name: End-to-end tests
22

33
on:
44
pull_request:
@@ -19,8 +19,8 @@ jobs:
1919
run: npm ci
2020
- name: Install Playwright browsers
2121
run: npx playwright install --with-deps
22-
- name: Run Playwright tests
23-
run: npx playwright test
22+
- name: Run tests
23+
run: npm run test-e2e
2424
- uses: actions/upload-artifact@v4
2525
if: ${{ !cancelled() }}
2626
with:

.github/workflows/test-unit.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Unit tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: lts/*
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Run tests
20+
run: npm run test-unit

0 commit comments

Comments
 (0)