23
23
runs-on : ubuntu-latest
24
24
25
25
steps :
26
- - uses : actions/checkout@v2
27
- - uses : actions/setup-node@v2
26
+ - uses : actions/checkout@v3
27
+ - uses : actions/setup-node@v3
28
28
with :
29
29
node-version : ' 14'
30
30
# install to create local package-lock.json but don't cache the files
@@ -43,21 +43,13 @@ jobs:
43
43
node : [14, 16, 18]
44
44
steps :
45
45
- name : Checkout ${{ matrix.node }}
46
- uses : actions/checkout@v2
46
+ uses : actions/checkout@v3
47
47
48
48
- name : Setup node ${{ matrix.node }}
49
- uses : actions/setup-node@v2
49
+ uses : actions/setup-node@v3
50
50
with :
51
51
node-version : ${{ matrix.node }}
52
52
53
- - name : Cache dependencies ${{ matrix.node }}
54
- uses : actions/cache@v1
55
- with :
56
- path : ~/.npm
57
- key : ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
58
- restore-keys : |
59
- ${{ runner.os }}-node-${{ matrix.node }}
60
-
61
53
# for this workflow we also require npm audit to pass
62
54
- run : npm i
63
55
- run : npm run test:coverage
@@ -85,28 +77,20 @@ jobs:
85
77
steps :
86
78
# checkout this repo
87
79
- name : Checkout ${{ matrix.node }}
88
- uses : actions/checkout@v2
80
+ uses : actions/checkout@v3
89
81
90
82
# checkout express-adapter repo
91
83
- name : Checkout express-adapter ${{ matrix.node }}
92
- uses : actions/checkout@v2
84
+ uses : actions/checkout@v3
93
85
with :
94
86
repository : node-oauth/express-oauth-server
95
87
path : github/testing/express
96
88
97
89
- name : Setup node ${{ matrix.node }}
98
- uses : actions/setup-node@v2
90
+ uses : actions/setup-node@v3
99
91
with :
100
92
node-version : ${{ matrix.node }}
101
93
102
- - name : Cache dependencies ${{ matrix.node }}
103
- uses : actions/cache@v1
104
- with :
105
- path : ~/.npm
106
- key : ${{ runner.os }}-node-${{ matrix.node }}-node-oauth/express-oauth-server-${{ hashFiles('github/testing/express/**/package-lock.json') }}
107
- restore-keys : |
108
- ${{ runner.os }}-node-${{ matrix.node }}-node-oauth/express-oauth-server
109
-
110
94
# in order to test the adapter we need to use the current checkout
111
95
# and install it as local dependency
112
96
# we just cloned and install it as local dependency
@@ -122,8 +106,8 @@ jobs:
122
106
runs-on : ubuntu-latest
123
107
needs : [integrationtests]
124
108
steps :
125
- - uses : actions/checkout@v2
126
- - uses : actions/setup-node@v2
109
+ - uses : actions/checkout@v3
110
+ - uses : actions/setup-node@v3
127
111
with :
128
112
node-version : 14
129
113
registry-url : https://registry.npmjs.org/
@@ -139,8 +123,8 @@ jobs:
139
123
contents : read
140
124
packages : write
141
125
steps :
142
- - uses : actions/checkout@v2
143
- - uses : actions/setup-node@v2
126
+ - uses : actions/checkout@v3
127
+ - uses : actions/setup-node@v3
144
128
with :
145
129
# we always publish targeting the lowest supported node version
146
130
node-version : 14
0 commit comments