-
Notifications
You must be signed in to change notification settings - Fork 144
44 lines (32 loc) · 888 Bytes
/
test.yaml
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
name: CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18
- name: install deps
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: run lint
run: npm run lint
- name: run unit tests
run: npm run test:ci
- name: run e2e tests
run: npm run e2e
- name: run build test
run: npm run build:demo
- name: run build prod
run: npm run build:lib