@@ -14,84 +14,112 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
17- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
17+ - uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
1818 with :
19- node-version : 12
19+ node-version : ' lts/* '
2020 registry-url : https://registry.npmjs.org/
21+ cache : ' npm'
2122 - run : npm ci
2223 - run : npm run audit
2324 unit :
2425 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/
2530 steps :
2631 - 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
2834 with :
29- node-version : 12
35+ node-version : ${{ matrix.node-version }}
3036 registry-url : https://registry.npmjs.org/
37+ cache : ' npm'
3138 - run : npm ci
3239 - run : npm run unit
3340 coverage :
3441 runs-on : ubuntu-latest
3542 steps :
3643 - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
37- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
44+ - uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
3845 with :
39- node-version : 12
46+ node-version : ' lts/* '
4047 registry-url : https://registry.npmjs.org/
48+ cache : ' npm'
4149 - run : npm ci
4250 - run : npm run coverage
4351 integration :
4452 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/
4557 services :
4658 regtest :
4759 image : junderw/bitcoinjs-regtest-server@sha256:5b69cf95d9edf6d5b3a00504665d6b3c382a6aa3728fe8ce897974c519061463
4860 ports :
4961 - 8080:8080
5062 steps :
5163 - 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
5366 with :
54- node-version : 12
67+ node-version : ${{ matrix.node-version }}
5568 registry-url : https://registry.npmjs.org/
69+ cache : ' npm'
5670 - run : npm ci
5771 - run : APIURL=http://127.0.0.1:8080/1 npm run integration
5872 format :
5973 runs-on : ubuntu-latest
6074 steps :
6175 - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
62- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
76+ - uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
6377 with :
64- node-version : 12
78+ node-version : ' lts/* '
6579 registry-url : https://registry.npmjs.org/
80+ cache : ' npm'
6681 - run : npm ci
6782 - run : npm run format:ci
6883 gitdiff :
6984 runs-on : ubuntu-latest
7085 steps :
7186 - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
72- - uses : actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
87+ - uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
7388 with :
74- node-version : 12
89+ node-version : ' lts/* '
7590 registry-url : https://registry.npmjs.org/
91+ cache : ' npm'
7692 - run : npm ci
7793 - run : npm run gitdiff:ci
7894 lint :
7995 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/
80100 steps :
81101 - 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
83104 with :
84- node-version : 12
105+ node-version : ${{ matrix.node-version }}
85106 registry-url : https://registry.npmjs.org/
107+ cache : ' npm'
86108 - run : npm ci
87109 - run : npm run lint
88110 lint-tests :
89111 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/
90116 steps :
91117 - 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
93120 with :
94- node-version : 12
121+ node-version : ${{ matrix.node-version }}
95122 registry-url : https://registry.npmjs.org/
123+ cache : ' npm'
96124 - run : npm ci
97125 - run : npm run lint:tests
0 commit comments