-
Notifications
You must be signed in to change notification settings - Fork 60
58 lines (55 loc) · 1.29 KB
/
ci.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
name: Test all versions
on:
pull_request:
push:
branches:
- master
jobs:
node-compatibility:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16', '18', '20']
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run unittests
run: npm test
marked-compatibility:
runs-on: ubuntu-latest
strategy:
matrix:
marked-version:
[
'1.0.x',
'2.0.x',
'3.0.x',
'4.0.x',
'5.0.x',
'6.0.x',
'7.0.x',
'8.0.x',
'9.0.x',
'10.0.x',
'11.0.x',
'12.0.x',
'13.0.x',
'14.0.x',
]
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install marked ${{ matrix.marked-version }}
run: npm install --no-save marked@${{ matrix.marked-version }}
- name: Run unittests
run: npm test