39
39
node-version : " 16"
40
40
41
41
- name : Install helm
42
- uses : azure/setup-helm@v2.1
42
+ uses : azure/setup-helm@v3.3
43
43
44
44
- name : Fetch dependencies from cache
45
45
id : cache-yarn
@@ -143,14 +143,20 @@ jobs:
143
143
id : vscode-rev
144
144
run : echo "::set-output name=rev::$(git rev-parse HEAD:./lib/vscode)"
145
145
146
- # We need to rebuild when we have a new version of Code or when any of
147
- # the patches changed. Use VSCODE_CACHE_VERSION to force a rebuild.
146
+ - name : Get version
147
+ id : version
148
+ run : echo "::set-output name=version::$(jq -r .version package.json)"
149
+
150
+ # We need to rebuild when we have a new version of Code, when any of
151
+ # the patches changed, or when the code-server version changes (since
152
+ # it gets embedded into the code). Use VSCODE_CACHE_VERSION to
153
+ # force a rebuild.
148
154
- name : Fetch prebuilt Code package from cache
149
155
id : cache-vscode
150
156
uses : actions/cache@v3
151
157
with :
152
158
path : lib/vscode-reh-web-*
153
- key : vscode-reh-package-${{ secrets.VSCODE_CACHE_VERSION }}-${{ steps.vscode-rev.outputs.rev }}-${{ hashFiles('patches/*.diff') }}
159
+ key : vscode-reh-package-${{ secrets.VSCODE_CACHE_VERSION }}-${{ steps.vscode-rev.outputs.rev }}-${{ steps.version.outputs.version }}-${{ hashFiles('patches/*.diff') }}
154
160
155
161
- name : Build vscode
156
162
if : steps.cache-vscode.outputs.cache-hit != 'true'
@@ -164,7 +170,9 @@ jobs:
164
170
if : success()
165
171
166
172
- name : Upload coverage report to Codecov
167
- run : yarn coverage
173
+ uses : codecov/codecov-action@v3
174
+ with :
175
+ token : ${{ secrets.CODECOV_TOKEN }}
168
176
if : success()
169
177
170
178
# The release package does not contain any native modules
@@ -288,8 +296,11 @@ jobs:
288
296
- name : Build standalone release
289
297
run : source scl_source enable devtoolset-9 && yarn release:standalone
290
298
291
- - name : Sanity test standalone release
292
- run : yarn test:standalone-release
299
+ - name : Install test dependencies
300
+ run : SKIP_SUBMODULE_DEPS=1 yarn install
301
+
302
+ - name : Run integration tests on standalone release
303
+ run : yarn test:integration
293
304
294
305
- name : Build packages with nfpm
295
306
run : yarn package
@@ -421,8 +432,11 @@ jobs:
421
432
- name : Build standalone release
422
433
run : yarn release:standalone
423
434
424
- - name : Sanity test standalone release
425
- run : yarn test:standalone-release
435
+ - name : Install test dependencies
436
+ run : SKIP_SUBMODULE_DEPS=1 yarn install
437
+
438
+ - name : Run integration tests on standalone release
439
+ run : yarn test:integration
426
440
427
441
- name : Build packages with nfpm
428
442
run : yarn package
@@ -509,7 +523,7 @@ jobs:
509
523
fetch-depth : 0
510
524
511
525
- name : Run Trivy vulnerability scanner in repo mode
512
- uses : aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
526
+ uses : aquasecurity/trivy-action@5144f05a8dca0b158e81bc678b850c7999e67c8a
513
527
with :
514
528
scan-type : " fs"
515
529
scan-ref : " ."
0 commit comments