forked from mdx-js/mdx
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.01 KB
/
main.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
40
41
42
43
44
45
46
name: main
on:
- pull_request
- push
jobs:
small:
name: test / ${{matrix.os}} / ${{matrix.node}}
runs-on: ${{matrix.os}}
env:
PUPPETEER_SKIP_DOWNLOAD: 1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
cache: npm
- run: npm install -g npm && npm install
- run: npm run test-api
strategy:
matrix:
os:
- macos-latest
- windows-latest
node:
- '*'
include:
- os: ubuntu-latest
node: lts/erbium
full:
name: full build
runs-on: ubuntu-latest
env:
PUPPETEER_SKIP_DOWNLOAD: 1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '*'
cache: npm
- run: npm install -g npm && npm install
- run: npm test
- uses: codecov/codecov-action@v2