3939 node-version : " 16"
4040
4141 - name : Install helm
42- uses : azure/setup-helm@v2.1
42+ uses : azure/setup-helm@v3.3
4343
4444 - name : Fetch dependencies from cache
4545 id : cache-yarn
@@ -143,14 +143,20 @@ jobs:
143143 id : vscode-rev
144144 run : echo "::set-output name=rev::$(git rev-parse HEAD:./lib/vscode)"
145145
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.
148154 - name : Fetch prebuilt Code package from cache
149155 id : cache-vscode
150156 uses : actions/cache@v3
151157 with :
152158 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') }}
154160
155161 - name : Build vscode
156162 if : steps.cache-vscode.outputs.cache-hit != 'true'
@@ -164,7 +170,9 @@ jobs:
164170 if : success()
165171
166172 - name : Upload coverage report to Codecov
167- run : yarn coverage
173+ uses : codecov/codecov-action@v3
174+ with :
175+ token : ${{ secrets.CODECOV_TOKEN }}
168176 if : success()
169177
170178 # The release package does not contain any native modules
@@ -288,8 +296,11 @@ jobs:
288296 - name : Build standalone release
289297 run : source scl_source enable devtoolset-9 && yarn release:standalone
290298
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
293304
294305 - name : Build packages with nfpm
295306 run : yarn package
@@ -421,8 +432,11 @@ jobs:
421432 - name : Build standalone release
422433 run : yarn release:standalone
423434
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
426440
427441 - name : Build packages with nfpm
428442 run : yarn package
@@ -509,7 +523,7 @@ jobs:
509523 fetch-depth : 0
510524
511525 - name : Run Trivy vulnerability scanner in repo mode
512- uses : aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
526+ uses : aquasecurity/trivy-action@5144f05a8dca0b158e81bc678b850c7999e67c8a
513527 with :
514528 scan-type : " fs"
515529 scan-ref : " ."
0 commit comments