-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (43 loc) · 968 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
unit:
timeout-minutes: 10
runs-on: ubuntu-latest
name: Unit Tests
steps:
- name: Checkout Commit
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
env:
CI: true
e2e:
timeout-minutes: 30
runs-on: ubuntu-latest
name: E2E Tests
steps:
- name: Checkout Commit
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: npm run e2e
env:
CI: true