3434
3535 upgrade :
3636 name : Upgrade packages
37- runs-on : ubuntu-latest
37+ runs-on : ubuntu-20.04
3838 defaults :
3939 run :
4040 working-directory : Meadowlark-js
8282 name : Analyze Code Dependencies
8383 # Not mandatory, but better for this to go after the upgrade since it can change the code.
8484 needs : upgrade
85- runs-on : ubuntu-latest
85+ runs-on : ubuntu-20.04
8686 permissions :
8787 security-events : write
8888
@@ -91,13 +91,13 @@ jobs:
9191 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
9292
9393 - name : Dependency Review ("Dependabot on PR")
94- uses : actions/dependency-review-action@c090f4e553673e6e505ea70d6a95362ee12adb94 # v3.0.3
94+ uses : actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
9595
9696 analyze-code :
9797 name : Analyze Code
9898 # Not mandatory, but better for this to go after the upgrade since it can change the code.
9999 needs : upgrade
100- runs-on : ubuntu-latest
100+ runs-on : ubuntu-20.04
101101 env :
102102 SRC_DIR : Meadowlark-js
103103 permissions :
@@ -108,15 +108,15 @@ jobs:
108108 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
109109
110110 - name : Setup Node
111- uses : actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0 .0
111+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2 .0
112112 with :
113113 node-version : " 18"
114114 cache : " npm"
115115 cache-dependency-path : " **/package-lock.json"
116116
117117 - name : Node modules cache
118118 id : modules-cache
119- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
119+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
120120 with :
121121 path : " **/node_modules"
122122 key : ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
@@ -126,33 +126,33 @@ jobs:
126126 run : npm install
127127
128128 - name : Initialize CodeQL
129- uses : github/codeql-action/init@df32e399139a3050671466d7d9b3cbacc1cfd034 # v2.15.2
129+ uses : github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
130130 with :
131131 languages : " typescript"
132132 setup-python-dependencies : false
133133
134134 - name : Perform CodeQL Analysis
135- uses : github/codeql-action/analyze@df32e399139a3050671466d7d9b3cbacc1cfd034 # v2.15.2
135+ uses : github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
136136
137137 lint :
138138 name : Lint
139139 needs : upgrade
140- runs-on : ubuntu-latest
140+ runs-on : ubuntu-20.04
141141
142142 steps :
143143 - name : Checkout repository
144144 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
145145
146146 - name : Setup Node
147- uses : actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0 .0
147+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2 .0
148148 with :
149149 node-version : " 18"
150150 cache : " npm"
151151 cache-dependency-path : " **/package-lock.json"
152152
153153 - name : Node modules cache
154154 id : modules-cache
155- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
155+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
156156 with :
157157 path : " **/node_modules"
158158 key : ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
@@ -167,22 +167,22 @@ jobs:
167167 build :
168168 name : Build
169169 needs : lint
170- runs-on : ubuntu-latest
170+ runs-on : ubuntu-20.04
171171
172172 steps :
173173 - name : Checkout repository
174174 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
175175
176176 - name : Setup Node
177- uses : actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0 .0
177+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2 .0
178178 with :
179179 node-version : " 18"
180180 cache : " npm"
181181 cache-dependency-path : " **/package-lock.json"
182182
183183 - name : Node modules cache
184184 id : modules-cache
185- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
185+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
186186 with :
187187 path : " **/node_modules"
188188 key : ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
@@ -197,7 +197,7 @@ jobs:
197197 tests :
198198 name : ${{matrix.tests.type}} tests
199199 needs : lint
200- runs-on : ubuntu-latest
200+ runs-on : ubuntu-20.04
201201 strategy :
202202 fail-fast : false
203203 matrix :
@@ -215,7 +215,7 @@ jobs:
215215 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
216216
217217 - name : Setup Node
218- uses : actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0 .0
218+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2 .0
219219 with :
220220 node-version : " 18"
221221 cache : " npm"
@@ -224,14 +224,14 @@ jobs:
224224 - name : Load MongoDB binary cache
225225 if : matrix.tests.type != 'Unit'
226226 id : cache-mongodb-binaries
227- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
227+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
228228 with :
229229 path : ~/.cache/mongodb-binaries
230230 key : ${{ runner.os }}-mongo-${{ hashFiles('**/package-lock.json') }}
231231
232232 - name : Node modules cache
233233 id : modules-cache
234- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
234+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
235235 with :
236236 path : " **/node_modules"
237237 key : ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
@@ -242,7 +242,7 @@ jobs:
242242
243243 - name : Jest cache
244244 id : cache-jest
245- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
245+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
246246 with :
247247 path : /tmp/jest_rt
248248 key : ${{ runner.os }}-jest-${{ hashFiles('**/package-lock.json') }}
@@ -279,7 +279,7 @@ jobs:
279279
280280 - name : Archive coverage results
281281 if : ${{ matrix.tests.type == 'Unit' }}
282- uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
282+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
283283 with :
284284 name : code-coverage-report
285285 path : Meadowlark-js/coverage/lcov-report
@@ -288,7 +288,7 @@ jobs:
288288 end-to-end :
289289 name : End to End tests for ${{ matrix.store.db }} as store and ${{matrix.query_handler.provider}} as query handler
290290 needs : lint
291- runs-on : ubuntu-latest
291+ runs-on : ubuntu-20.04
292292 strategy :
293293 fail-fast : false
294294 matrix :
@@ -304,7 +304,7 @@ jobs:
304304 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
305305
306306 - name : Setup Node
307- uses : actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0 .0
307+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2 .0
308308 with :
309309 node-version : " 18"
310310 cache : " npm"
@@ -315,7 +315,7 @@ jobs:
315315
316316 - name : Jest cache
317317 id : cache-jest
318- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
318+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
319319 with :
320320 path : /tmp/jest_rt
321321 key : ${{ runner.os }}-jest-${{ hashFiles('**/package-lock.json') }}
@@ -336,7 +336,7 @@ jobs:
336336
337337 - name : Docker logs
338338 if : failure()
339- uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
339+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
340340 with :
341341 name : docker-logs
342342 path : |
0 commit comments