Skip to content

Commit 24c8953

Browse files
committed
Create unit test workflow
1 parent 90dea29 commit 24c8953

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/unit-tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
timeout-minutes: 30
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
18+
- name: Install Dependencies
19+
run: npm ci
20+
- name: Install Playwright Browsers
21+
run: npx playwright install --with-deps
22+
- name: Run Unit Tests
23+
run: npm run test

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.github/
12
node_modules
23
src
34
tests

0 commit comments

Comments
 (0)