@@ -23,11 +23,13 @@ jobs:
2323 runs-on : ubuntu-latest
2424
2525 steps :
26- - uses : actions/checkout@v2
27- - uses : actions/setup-node@v2
26+ - uses : actions/checkout@v3
27+ - uses : actions/setup-node@v3
2828 with :
29- node-version : ' 12'
30- - run : npm audit --production # no audit for dev dependencies
29+ node-version : 16
30+ # install to create local package-lock.json but don't cache the files
31+ # also: no audit for dev dependencies
32+ - run : npm i --package-lock-only && npm audit --production
3133
3234 # STEP 2 - basic unit tests
3335
@@ -38,18 +40,18 @@ jobs:
3840 needs : [audit]
3941 strategy :
4042 matrix :
41- node : [12, 14, 16]
43+ node : [14, 16, 18 ]
4244 steps :
4345 - name : Checkout ${{ matrix.node }}
44- uses : actions/checkout@v2
46+ uses : actions/checkout@v3
4547
4648 - name : Setup node ${{ matrix.node }}
47- uses : actions/setup-node@v2
49+ uses : actions/setup-node@v3
4850 with :
4951 node-version : ${{ matrix.node }}
5052
5153 - name : Cache dependencies ${{ matrix.node }}
52- uses : actions/cache@v1
54+ uses : actions/cache@v3
5355 with :
5456 path : ~/.npm
5557 key : ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
@@ -79,26 +81,26 @@ jobs:
7981 needs : [unittest]
8082 strategy :
8183 matrix :
82- node : [12, 14 ] # TODO get running for node 16
84+ node : [14, 16, 18 ] # TODO get running for node 16+
8385 steps :
8486 # checkout this repo
8587 - name : Checkout ${{ matrix.node }}
86- uses : actions/checkout@v2
88+ uses : actions/checkout@v3
8789
8890 # checkout express-adapter repo
8991 - name : Checkout express-adapter ${{ matrix.node }}
90- uses : actions/checkout@v2
92+ uses : actions/checkout@v3
9193 with :
9294 repository : node-oauth/express-oauth-server
9395 path : github/testing/express
9496
9597 - name : Setup node ${{ matrix.node }}
96- uses : actions/setup-node@v2
98+ uses : actions/setup-node@v3
9799 with :
98100 node-version : ${{ matrix.node }}
99101
100102 - name : Cache dependencies ${{ matrix.node }}
101- uses : actions/cache@v1
103+ uses : actions/cache@v3
102104 with :
103105 path : ~/.npm
104106 key : ${{ runner.os }}-node-${{ matrix.node }}-node-oauth/express-oauth-server-${{ hashFiles('github/testing/express/**/package-lock.json') }}
@@ -120,10 +122,10 @@ jobs:
120122 runs-on : ubuntu-latest
121123 needs : [integrationtests]
122124 steps :
123- - uses : actions/checkout@v2
124- - uses : actions/setup-node@v2
125+ - uses : actions/checkout@v3
126+ - uses : actions/setup-node@v3
125127 with :
126- node-version : 12
128+ node-version : 16
127129 registry-url : https://registry.npmjs.org/
128130 - run : npm i
129131 - run : npm publish --dry-run
@@ -137,11 +139,11 @@ jobs:
137139 contents : read
138140 packages : write
139141 steps :
140- - uses : actions/checkout@v2
141- - uses : actions/setup-node@v2
142+ - uses : actions/checkout@v3
143+ - uses : actions/setup-node@v3
142144 with :
143145 # we always publish targeting the lowest supported node version
144- node-version : 12
146+ node-version : 16
145147 registry-url : $registry-url(npm)
146148 - run : npm i
147149 - run : npm publish --dry-run
0 commit comments