File tree 2 files changed +4
-34
lines changed
2 files changed +4
-34
lines changed Original file line number Diff line number Diff line change 6
6
push :
7
7
branches :
8
8
- main
9
- - master
10
9
pull_request :
11
10
12
11
jobs :
13
12
14
13
test :
15
-
16
- runs-on : ubuntu-latest
17
-
18
- strategy :
19
- matrix :
20
- node-version : [ 17, 16, 14, 12 ]
21
-
22
- steps :
23
- - uses : actions/checkout@v2
24
- - uses : actions/setup-node@v2
25
- with :
26
- node-version : ${{ matrix.node-version }}
27
- - run : npm install
28
- - run : npm run tests-only
29
- env :
30
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
-
32
- lint :
33
-
34
- runs-on : ubuntu-latest
35
-
36
- strategy :
37
- matrix :
38
- node-version : [ 16 ]
39
-
40
- steps :
41
- - uses : actions/checkout@v2
42
- - uses : actions/setup-node@v2
43
- with :
44
- node-version : ${{ matrix.node-version }}
45
- - run : npm install
46
- - run : npm run lint
14
+ uses : pkgjs/action/.github/workflows/node-test.yaml@main
15
+ secrets :
16
+ test-secrets : ' {"GITHUB_TOKEN":"${{ secrets.GITHUB_TOKEN }}"}'
Original file line number Diff line number Diff line change 13
13
"action-wiby-test" : " npm install --production && ./bin/wiby test" ,
14
14
"action-wiby-result" : " npm install --production && ./bin/wiby result" ,
15
15
"lint" : " standard" ,
16
- "pretest" : " npm run lint" ,
16
+ "pretest" : " [ \" $NODE_LTS_LATEST \" != \"\" ] && [ \" $MATRIX_NODE_VERSION \" != \" $NODE_LTS_LATEST \" ] && echo 'Skipping linting' || npm run lint" ,
17
17
"test" : " npm run tests-only" ,
18
18
"tests-only" : " tap" ,
19
19
"generate-docs" : " ./bin/generate-usage.js"
You can’t perform that action at this time.
0 commit comments