File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
test-and-build :
10
10
runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ node-version : [10.x, 12.x]
14
+
11
15
steps :
12
16
- uses : actions/checkout@v2
13
17
@@ -19,10 +23,29 @@ jobs:
19
23
${{ runner.os }}-node-
20
24
21
25
- uses : actions/setup-node@v2
26
+ name : Use Node.js ${{ matrix.node-version }}
22
27
with :
23
- node-version : ' 12 '
28
+ node-version : ${{ matrix.node-version }}
24
29
check-latest : true
25
30
26
31
- run : npm ci
27
32
- run : npm run test:ci
28
33
- run : npm run build
34
+
35
+ doctoc :
36
+ needs : test-and-build
37
+ runs-on : ubuntu-latest
38
+ if : github.ref == 'refs/heads/master' || github.event.pull_request
39
+
40
+ steps :
41
+ - uses : actions/setup-node@v2
42
+ name : Use Node.js 12
43
+ with :
44
+ node-version : 12
45
+ check-latest : true
46
+ - name : Install doctoc-check
47
+ run : |
48
+ npm install -g doctoc
49
+ cp README.md README.md.orig
50
+ npm run doctoc
51
+ diff -q README.md README.md.orig
You can’t perform that action at this time.
0 commit comments