forked from micromark/micromark
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (68 loc) · 1.82 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: main
on:
- pull_request
- push
jobs:
test:
name: test / micromark / ${{matrix.node}} on ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: dcodeIO/setup-node-nvm@master
with:
node-version: ${{matrix.node}}
- run: npm install -g npm
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v1
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
node:
- lts/fermium
- lts/gallium
canary:
name: canary / ${{matrix.package}} / ${{matrix.node}} on ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- name: checkout micromark
uses: actions/checkout@v2
- name: setup node
uses: dcodeIO/setup-node-nvm@master
with:
node-version: ${{matrix.node}}
- name: setup micromark
run: |
npm install -g npm
npm install
npm run build
- name: checkout ${{matrix.package}}
uses: actions/checkout@v2
with:
repository: ${{matrix.package}}
path: canary/${{matrix.package}}
- name: test ${{matrix.package}}
run: |
npm install
for package in $(ls ../../packages); do
npx rimraf "node_modules/**/$package"
done
npm test
working-directory: canary/${{matrix.package}}
strategy:
fail-fast: false
max-parallel: 2
matrix:
os:
- ubuntu-latest
node:
- lts/gallium
package:
- micromark/micromark-extension-gfm
- micromark/micromark-extension-directive
- micromark/micromark-extension-mdx
- syntax-tree/mdast-util-from-markdown
- remarkjs/remark
- remarkjs/react-markdown