@@ -14,84 +14,112 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
17
- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
17
+ - uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
18
18
with :
19
- node-version : 12
19
+ node-version : ' lts/* '
20
20
registry-url : https://registry.npmjs.org/
21
+ cache : ' npm'
21
22
- run : npm ci
22
23
- run : npm run audit
23
24
unit :
24
25
runs-on : ubuntu-latest
26
+ strategy :
27
+ matrix :
28
+ node-version : [14, 'lts/*']
29
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
25
30
steps :
26
31
- uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
27
- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
32
+ - name : Use Node.js ${{ matrix.node-version }}
33
+ uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
28
34
with :
29
- node-version : 12
35
+ node-version : ${{ matrix.node-version }}
30
36
registry-url : https://registry.npmjs.org/
37
+ cache : ' npm'
31
38
- run : npm ci
32
39
- run : npm run unit
33
40
coverage :
34
41
runs-on : ubuntu-latest
35
42
steps :
36
43
- uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
37
- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
44
+ - uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
38
45
with :
39
- node-version : 12
46
+ node-version : ' lts/* '
40
47
registry-url : https://registry.npmjs.org/
48
+ cache : ' npm'
41
49
- run : npm ci
42
50
- run : npm run coverage
43
51
integration :
44
52
runs-on : ubuntu-latest
53
+ strategy :
54
+ matrix :
55
+ node-version : [14, 'lts/*']
56
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
45
57
services :
46
58
regtest :
47
59
image : junderw/bitcoinjs-regtest-server@sha256:5b69cf95d9edf6d5b3a00504665d6b3c382a6aa3728fe8ce897974c519061463
48
60
ports :
49
61
- 8080:8080
50
62
steps :
51
63
- uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
52
- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
64
+ - name : Use Node.js ${{ matrix.node-version }}
65
+ uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
53
66
with :
54
- node-version : 12
67
+ node-version : ${{ matrix.node-version }}
55
68
registry-url : https://registry.npmjs.org/
69
+ cache : ' npm'
56
70
- run : npm ci
57
71
- run : APIURL=http://127.0.0.1:8080/1 npm run integration
58
72
format :
59
73
runs-on : ubuntu-latest
60
74
steps :
61
75
- uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
62
- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
76
+ - uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
63
77
with :
64
- node-version : 12
78
+ node-version : ' lts/* '
65
79
registry-url : https://registry.npmjs.org/
80
+ cache : ' npm'
66
81
- run : npm ci
67
82
- run : npm run format:ci
68
83
gitdiff :
69
84
runs-on : ubuntu-latest
70
85
steps :
71
86
- uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
72
- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
87
+ - uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
73
88
with :
74
- node-version : 12
89
+ node-version : ' lts/* '
75
90
registry-url : https://registry.npmjs.org/
91
+ cache : ' npm'
76
92
- run : npm ci
77
93
- run : npm run gitdiff:ci
78
94
lint :
79
95
runs-on : ubuntu-latest
96
+ strategy :
97
+ matrix :
98
+ node-version : [14, 'lts/*']
99
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
80
100
steps :
81
101
- uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
82
- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
102
+ - name : Use Node.js ${{ matrix.node-version }}
103
+ uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
83
104
with :
84
- node-version : 12
105
+ node-version : ${{ matrix.node-version }}
85
106
registry-url : https://registry.npmjs.org/
107
+ cache : ' npm'
86
108
- run : npm ci
87
109
- run : npm run lint
88
110
lint-tests :
89
111
runs-on : ubuntu-latest
112
+ strategy :
113
+ matrix :
114
+ node-version : [14, 'lts/*']
115
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
90
116
steps :
91
117
- uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
92
- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
118
+ - name : Use Node.js ${{ matrix.node-version }}
119
+ uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
93
120
with :
94
- node-version : 12
121
+ node-version : ${{ matrix.node-version }}
95
122
registry-url : https://registry.npmjs.org/
123
+ cache : ' npm'
96
124
- run : npm ci
97
125
- run : npm run lint:tests
0 commit comments