File tree 3 files changed +42
-2
lines changed
3 files changed +42
-2
lines changed Original file line number Diff line number Diff line change @@ -581,8 +581,8 @@ jobs:
581
581
if : steps.cache-node-modules.outputs.cache-hit != 'true'
582
582
run : SKIP_SUBMODULE_DEPS=1 yarn install
583
583
584
- - name : Run integration tests on standalone release
585
- run : yarn test:integration
584
+ - name : Run native module tests on standalone release
585
+ run : yarn test:native
586
586
587
587
- name : Build packages with nfpm
588
588
run : yarn package
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ help () {
5
+ echo >&2 " You can build the standalone release with 'yarn release:standalone'"
6
+ echo >&2 " Or you can pass in a custom path."
7
+ echo >&2 " CODE_SERVER_PATH='/var/tmp/coder/code-server/bin/code-server' yarn test:integration"
8
+ }
9
+
10
+ # Make sure a code-server release works. You can pass in the path otherwise it
11
+ # will look for release-standalone in the current directory.
12
+ #
13
+ # This is to make sure we don't have Node version errors or any other
14
+ # compilation-related errors.
15
+ main () {
16
+ cd " $( dirname " $0 " ) /../.."
17
+
18
+ source ./ci/lib.sh
19
+
20
+ local path=" $RELEASE_PATH -standalone/bin/code-server"
21
+ if [[ ! ${CODE_SERVER_PATH-} ]]; then
22
+ echo " Set CODE_SERVER_PATH to test another build of code-server"
23
+ else
24
+ path=" $CODE_SERVER_PATH "
25
+ fi
26
+
27
+ echo " Running tests with code-server binary: '$path '"
28
+
29
+ if [[ ! -f $path ]]; then
30
+ echo >&2 " No code-server build detected"
31
+ echo >&2 " Looked in $path "
32
+ help
33
+ exit 1
34
+ fi
35
+
36
+ CODE_SERVER_PATH=" $path " ./test/node_modules/.bin/jest " $@ " --coverage=false --testRegex " ./test/integration/help.test.ts"
37
+ }
38
+
39
+ main " $@ "
Original file line number Diff line number Diff line change 19
19
"test:e2e:proxy" : " USE_PROXY=1 ./ci/dev/test-e2e.sh" ,
20
20
"test:unit" : " ./ci/dev/test-unit.sh --forceExit --detectOpenHandles" ,
21
21
"test:integration" : " ./ci/dev/test-integration.sh" ,
22
+ "test:native" : " ./ci/dev/test-native.sh" ,
22
23
"test:scripts" : " ./ci/dev/test-scripts.sh" ,
23
24
"package" : " ./ci/build/build-packages.sh" ,
24
25
"postinstall" : " ./ci/dev/postinstall.sh" ,
You can’t perform that action at this time.
0 commit comments