-
Notifications
You must be signed in to change notification settings - Fork 15
58 lines (43 loc) · 1.21 KB
/
ci.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Continuous Integration
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
tests:
name: Tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x # current LTS
cache: npm
- name: Install dependencies
run: npm ci
- name: Install playwright
run: npx playwright install --with-deps
- name: Run lint
run: npm run lint
- name: Run format:check
run: npm run format:check
- name: Run unit tests
run: npm run ut:coverage
- name: Run end to end tests
run: npm run e2e:coverage
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d #v3.1.4
with:
file: ./coverage/lcov.info
flags: ut
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d #v3.1.4
with:
file: ./coverage-e2e/lcov.info
flags: e2e
- name: Build API documentation
run: npm run apidoc