@@ -5,14 +5,13 @@ name: Nodejs Test
5
5
on : [push, pull_request]
6
6
7
7
jobs :
8
- test :
8
+ platform_spec_test :
9
9
name : ' Tests on ${{matrix.os}} with node${{matrix.node}}'
10
10
strategy :
11
11
matrix :
12
12
# Test all mainstream operating system
13
13
os : [ubuntu-latest, macos-latest, windows-latest]
14
- # Latest four Nodejs LTS version
15
- node : [10, 12, 14, 16]
14
+ node : [16]
16
15
runs-on : ${{ matrix.os }}
17
16
steps :
18
17
# Pull repo to test machine
22
21
with :
23
22
# The Node.js version to configure
24
23
node-version : ${{ matrix.node }}
25
-
26
24
# Caching dependencies to speed up workflows
27
25
- name : Get npm cache directory
28
26
id : npm-cache-dir
@@ -35,13 +33,29 @@ jobs:
35
33
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
36
34
restore-keys : |
37
35
${{ runner.os }}-node-
38
-
39
36
- name : Install npm dependencies
40
37
run : npm install
41
-
42
38
- name : Print put node & npm version
43
39
# Output useful info for debugging.
44
40
run : node --version && npm --version
41
+ - name : Run unit test
42
+ run : cd packages/less && npm test
45
43
44
+ fast_node_test :
45
+ name : ' Tests on ${{matrix.os}} with node${{matrix.node}}'
46
+ strategy :
47
+ matrix :
48
+ os : [ubuntu-latest]
49
+ node : [10, 12, 14, 17]
50
+ runs-on : ${{ matrix.os }}
51
+ steps :
52
+ - uses : actions/checkout@v2
53
+ - uses : actions/setup-node@v2
54
+ with :
55
+ node-version : ${{ matrix.node }}
56
+ - name : Install npm dependencies
57
+ run : npm install
58
+ - name : Print put node & npm version
59
+ run : node --version && npm --version
46
60
- name : Run unit test
47
61
run : cd packages/less && npm test
0 commit comments