-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (35 loc) · 873 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
name: tests
on:
push:
branches: [master]
paths-ignore:
- '**/*.md'
pull_request:
branches: [master]
paths-ignore:
- '**/*.md'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [12.x, 14.x, 15.x]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# This action installs ffmpeg
- uses: FedericoCarboni/setup-ffmpeg@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm test
# Upload coverage to codecov.io
- run: npm run coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}