-
-
Notifications
You must be signed in to change notification settings - Fork 215
40 lines (36 loc) · 922 Bytes
/
test.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
name: Test
on:
push:
branches:
- master
permissions:
contents: read
jobs:
test:
name: OverlayScrollbars Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '>=20.6.0'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run Unit Tests
run: npm run ci:test
- name: Run e2e Tests
run: xvfb-run npm run ci:e2e
- name: Upload Unit Tests Coverage
uses: codecov/codecov-action@v3
with:
flags: unit
files: "packages/**/.coverage/unit/coverage*.json"
- name: Upload e2e Tests Coverage
uses: codecov/codecov-action@v3
with:
flags: e2e
files: "packages/**/.coverage/e2e/coverage*.json"