-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (41 loc) · 942 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
name: npm test
on:
pull_request:
branches:
- '**'
push:
branches:
- master
- beta
jobs:
test:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install Node.js on ${{ matrix.os }}
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: package-lock.json
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: npm ci
- name: Generate coverage report
run: npm run report:coverage
- name: Send coverage report
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./reports/