File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
test/integration-tests/debugger Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -29,18 +29,24 @@ import { SwiftToolchain } from "../toolchain/toolchain";
29
29
export const IS_PRODUCTION_BUILD = process . env . NODE_ENV === "production" ;
30
30
31
31
/**
32
- * Whether or not the code is being run in CI.
33
- *
34
- * Code that checks for this will be removed completely when the extension is packaged into
35
- * a VSIX.
36
- * @deprecated
32
+ * Whether or not the code is being run in a Github Actions workflow.
33
+ */
34
+ export const IS_RUNNING_UNDER_GITHUB_ACTIONS = process . env . GITHUB_ACTIONS === "true" ;
35
+
36
+ /**
37
+ * Whether or not the code is being run by `act` CLT.
38
+ */
39
+ export const IS_RUNNING_UNDER_ACT = process . env . ACT === "true" ;
40
+
41
+ /**
42
+ * Whether or not the code is being run in a docker container.
37
43
*/
38
- export const IS_RUNNING_IN_CI = process . env . CI === "1" ;
44
+ export const IS_RUNNING_UNDER_DOCKER = IS_RUNNING_UNDER_ACT || IS_RUNNING_UNDER_GITHUB_ACTIONS ;
39
45
40
46
/**
41
47
* Whether or not the code is being run as part of a test suite.
42
48
*
43
- * This will NOT be removed when the extension is packaged into a VSIX.
49
+ * This will NOT be removed when the extension is packaged into a VSIX, unlike "CI" variable .
44
50
*/
45
51
export const IS_RUNNING_UNDER_TEST = process . env . RUNNING_UNDER_VSCODE_TEST_CLI === "1" ;
46
52
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { getLLDBLibPath } from "../../../src/debugger/lldb";
17
17
import { WorkspaceContext } from "../../../src/WorkspaceContext" ;
18
18
import { activateExtensionForTest } from "../utilities/testutilities" ;
19
19
import { Version } from "../../../src/utilities/version" ;
20
- import { IS_RUNNING_IN_CI } from "../../../src/utilities/utilities" ;
20
+ import { IS_RUNNING_UNDER_DOCKER } from "../../../src/utilities/utilities" ;
21
21
22
22
suite ( "lldb contract test suite" , ( ) => {
23
23
let workspaceContext : WorkspaceContext ;
@@ -26,7 +26,7 @@ suite("lldb contract test suite", () => {
26
26
async setup ( ctx ) {
27
27
// lldb.exe on Windows is not launching correctly, but only in Docker.
28
28
if (
29
- IS_RUNNING_IN_CI &&
29
+ IS_RUNNING_UNDER_DOCKER &&
30
30
process . platform === "win32" &&
31
31
ctx . globalToolchainSwiftVersion . isGreaterThanOrEqual ( new Version ( 6 , 0 , 0 ) ) &&
32
32
ctx . globalToolchainSwiftVersion . isLessThan ( new Version ( 6 , 0 , 2 ) )
You can’t perform that action at this time.
0 commit comments