12
12
SLS_SCHEMA_CACHE_BASE_DIR : ' /home/runner'
13
13
14
14
jobs :
15
- linuxNode16 :
16
- name : ' [Linux] Node.js 16 : Publish canary, Unit & packaging tests '
15
+ linuxNode22 :
16
+ name : ' [Linux] Node 22 : Publish canary, Unit & packaging tests '
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- name : Checkout repository
20
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
21
21
22
22
- name : Install Node.js and npm
23
- uses : actions/setup-node@v3
23
+ uses : actions/setup-node@v4
24
24
with :
25
- node-version : 16 .x
25
+ node-version : 22 .x
26
26
registry-url : https://registry.npmjs.org
27
27
28
28
- name : Publish canary
@@ -37,13 +37,13 @@ jobs:
37
37
38
38
- name : Retrieve dependencies from cache
39
39
id : cacheNpm
40
- uses : actions/cache@v3
40
+ uses : actions/cache@v4
41
41
with :
42
42
path : |
43
43
~/.npm
44
44
node_modules
45
- key : npm-v16 -${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
46
- restore-keys : npm-v16 -${{ runner.os }}-${{ github.ref }}-
45
+ key : npm-v22 -${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
46
+ restore-keys : npm-v22 -${{ runner.os }}-${{ github.ref }}-
47
47
48
48
- name : Install dependencies
49
49
if : steps.cacheNpm.outputs.cache-hit != 'true'
@@ -58,15 +58,15 @@ jobs:
58
58
run : npm run integration-test-run-package
59
59
60
60
windowsNode16 :
61
- name : ' [Windows] Node.js v16 : Unit tests'
61
+ name : ' [Windows] Node 16 : Unit tests'
62
62
runs-on : windows-latest
63
63
steps :
64
64
- name : Checkout repository
65
- uses : actions/checkout@v3
65
+ uses : actions/checkout@v4
66
66
67
67
- name : Retrieve dependencies from cache
68
68
id : cacheNpm
69
- uses : actions/cache@v3
69
+ uses : actions/cache@v4
70
70
with :
71
71
path : |
72
72
~/.npm
75
75
restore-keys : npm-v16-${{ runner.os }}-${{ github.ref }}-
76
76
77
77
- name : Install Node.js and npm
78
- uses : actions/setup-node@v3
78
+ uses : actions/setup-node@v4
79
79
with :
80
80
node-version : 16.x
81
81
@@ -87,27 +87,27 @@ jobs:
87
87
- name : Unit tests
88
88
run : npm test -- -b
89
89
90
- linuxNode14 :
91
- name : ' [Linux] Node.js 14 : Isolated unit tests'
90
+ linuxNode16 :
91
+ name : ' [Linux] Node 16 : Isolated unit tests'
92
92
runs-on : ubuntu-latest
93
93
steps :
94
94
- name : Checkout repository
95
- uses : actions/checkout@v3
95
+ uses : actions/checkout@v4
96
96
97
97
- name : Retrieve dependencies from cache
98
98
id : cacheNpm
99
- uses : actions/cache@v3
99
+ uses : actions/cache@v4
100
100
with :
101
101
path : |
102
102
~/.npm
103
103
node_modules
104
- key : npm-v14 -${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
105
- restore-keys : npm-v14 -${{ runner.os }}-${{ github.ref }}-
104
+ key : npm-v16 -${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
105
+ restore-keys : npm-v16 -${{ runner.os }}-${{ github.ref }}-
106
106
107
107
- name : Install Node.js and npm
108
- uses : actions/setup-node@v3
108
+ uses : actions/setup-node@v4
109
109
with :
110
- node-version : 14 .x
110
+ node-version : 16 .x
111
111
112
112
- name : Install dependencies
113
113
if : steps.cacheNpm.outputs.cache-hit != 'true'
@@ -119,40 +119,10 @@ jobs:
119
119
# Workaround taken from https://github.com/actions/runner/issues/241#issuecomment-577360161
120
120
run : script -e -c "npm run test:isolated -- -b"
121
121
122
- linuxNode12 :
123
- name : ' [Linux] Node.js v12: Node version validation test'
124
- runs-on : ubuntu-latest
125
- steps :
126
- - name : Checkout repository
127
- uses : actions/checkout@v3
128
-
129
- - name : Install Node.js and npm
130
- uses : actions/setup-node@v3
131
- with :
132
- node-version : 12.x
133
-
134
- - name : Node version validation test
135
- run : ./bin/serverless.js 2>&1 | grep -q "does not support"
136
-
137
- linuxNode4 :
138
- name : ' [Linux] Node.js v4: Node version validation test'
139
- runs-on : ubuntu-latest
140
- steps :
141
- - name : Checkout repository
142
- uses : actions/checkout@v3
143
-
144
- - name : Install Node.js and npm
145
- uses : actions/setup-node@v3
146
- with :
147
- node-version : 4.x
148
-
149
- - name : Node version validation test
150
- run : ./bin/serverless.js 2>&1 | grep -q "does not support"
151
-
152
122
integrate :
153
123
name : Integrate
154
124
runs-on : ubuntu-latest
155
- needs : [linuxNode16, windowsNode16, linuxNode14, linuxNode12, linuxNode4 ]
125
+ needs : [linuxNode22, windowsNode22, linuxNode16 ]
156
126
timeout-minutes : 30 # Default is 360
157
127
env :
158
128
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -161,7 +131,7 @@ jobs:
161
131
SERVERLESS_BINARY_PATH : ./dist/serverless-linux
162
132
steps :
163
133
- name : Checkout repository
164
- uses : actions/checkout@v3
134
+ uses : actions/checkout@v4
165
135
with :
166
136
# Ensure to have complete history of commits pushed with given push operation
167
137
# It's loose and imperfect assumption that no more than 30 commits will be pushed at once
@@ -171,22 +141,22 @@ jobs:
171
141
token : ${{ secrets.USER_GITHUB_TOKEN }}
172
142
173
143
- name : Retrieve dependencies from cache
174
- uses : actions/cache@v3
144
+ uses : actions/cache@v4
175
145
with :
176
146
path : |
177
147
~/.npm
178
148
node_modules
179
- key : npm-v16 -${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
149
+ key : npm-v22 -${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
180
150
181
151
# Potentially needed for test/integration/curated-plugins-python.test.js
182
152
- uses : actions/setup-python@v4
183
153
with :
184
154
python-version : ' 3.11'
185
155
186
156
- name : Install Node.js and npm
187
- uses : actions/setup-node@v3
157
+ uses : actions/setup-node@v4
188
158
with :
189
- node-version : 16 .x
159
+ node-version : 22 .x
190
160
191
161
# Note: No need to install dependencies as we have retrieved cached `node_modules` for very
192
162
# same `package.json` as stored with previous job
0 commit comments