| @@ -3,20 +3,54 @@ name: Node CI |
|
|
| 3 |
3 |
on: [push, pull_request] |
| 4 |
4 |
|
| 5 |
5 |
jobs: |
|
6 |
+lint: |
|
7 |
+runs-on: ubuntu-latest |
|
8 |
+steps: |
|
9 |
+# Checkout the npm/cli repo |
|
10 |
+ - uses: actions/checkout@v2 |
|
11 |
+ - name: Use Node.js 14.x |
|
12 |
+uses: actions/setup-node@v1 |
|
13 |
+with: |
|
14 |
+node-version: 14.x |
|
15 |
+ - name: Install dependencies |
|
16 |
+run: | |
|
17 |
+ node . install --ignore-scripts --no-audit |
|
18 |
+ node . rebuild |
|
19 |
+ - name: Run linting |
|
20 |
+run: node . run posttest |
|
21 |
+env: |
|
22 |
+DEPLOY_VERSION: testing |
|
23 |
+ |
|
24 |
+licenses: |
|
25 |
+runs-on: ubuntu-latest |
|
26 |
+steps: |
|
27 |
+# Checkout the npm/cli repo |
|
28 |
+ - uses: actions/checkout@v2 |
|
29 |
+ - name: Use Node.js 14.x |
|
30 |
+uses: actions/setup-node@v1 |
|
31 |
+with: |
|
32 |
+node-version: 14.x |
|
33 |
+ - name: Install dependencies |
|
34 |
+run: | |
|
35 |
+ node . install --ignore-scripts --no-audit |
|
36 |
+ node . rebuild |
|
37 |
+ - name: Run linting |
|
38 |
+run: node . run licenses |
|
39 |
+ |
| 6 |
40 |
build: |
| 7 |
41 |
strategy: |
| 8 |
42 |
fail-fast: false |
| 9 |
43 |
matrix: |
| 10 |
44 |
node-version: [10.x, 12.x, 14.x] |
| 11 |
45 |
platform: |
| 12 |
|
- - os: ubuntu-latest |
| 13 |
|
-shell: bash |
| 14 |
|
- - os: macos-latest |
| 15 |
|
-shell: bash |
| 16 |
|
- - os: windows-latest |
| 17 |
|
-shell: bash |
| 18 |
|
- - os: windows-latest |
| 19 |
|
-shell: powershell |
|
46 |
+ - os: ubuntu-latest |
|
47 |
+ shell: bash |
|
48 |
+ - os: macos-latest |
|
49 |
+ shell: bash |
|
50 |
+ - os: windows-latest |
|
51 |
+ shell: bash |
|
52 |
+ - os: windows-latest |
|
53 |
+ shell: powershell |
| 20 |
54 |
|
| 21 |
55 |
runs-on: ${{ matrix.platform.os }} |
| 22 |
56 |
defaults: |
| @@ -42,7 +76,7 @@ jobs: |
|
|
| 42 |
76 |
# Run the tests, but not if we're just gonna do coveralls later anyway |
| 43 |
77 |
- name: Run Tap tests |
| 44 |
78 |
if: matrix.platform.os != 'ubuntu-latest' | |
| 45 |
|
-run: node . test -- -t600 -Rbase -c |
|
79 |
+run: node . run --ignore-scripts test -- -t600 -Rbase -c |
| 46 |
80 |
env: |
| 47 |
81 |
DEPLOY_VERSION: testing |
| 48 |
82 |
|
| @@ -58,8 +92,3 @@ jobs: |
|
|
| 58 |
92 |
# - name: Run sudo tests on Linux |
| 59 |
93 |
# if: matrix.os == 'ubuntu-latest' |
| 60 |
94 |
# run: sudo PATH=$PATH $(which node) . test -- --coverage --timeout 600 |
| 61 |
|
- |
| 62 |
|
-# no need to check licenses everywhere, they don't change between versions |
| 63 |
|
- - name: Validate licenses |
| 64 |
|
-if: matrix.os == 'ubuntu-latest' && matrix.node-version == '12.x' |
| 65 |
|
-run: node . run licenses |