forked from msgpack/msgpack-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 899 Bytes
/
ci.yml
File metadata and controls
44 lines (37 loc) · 899 Bytes
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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
nodejs:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: ['12', '14', '16']
steps:
- uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g npm
- run: npm install -g nyc codecov
- run: npm ci
- run: npm run test:cover
- run: codecov -f coverage/*.json
browser:
runs-on: ubuntu-20.04
strategy:
matrix:
browser: [ChromeHeadless, FirefoxHeadless]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm install -g npm
- run: npm ci
- run: npm run test:browser -- --browsers ${{ matrix.browser }}