Skip to content

Commit 92aad8b

Browse files
committed
check tests
1 parent 4e13652 commit 92aad8b

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@master
1313
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
14-
- name: Start xvfb
15-
if: runner.os == 'Linux'
16-
run: |
17-
set -e
18-
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
19-
disown -ar
2014
- name: Set an output
2115
id: set-version
2216
if: runner.os == 'Linux'
@@ -36,12 +30,13 @@ jobs:
3630
- name: Use Node.js
3731
uses: actions/setup-node@master
3832
with:
39-
node-version: 10
33+
node-version: 12.x
4034
- run: npm install
4135
- run: npm run compile
42-
- run: npm run test
43-
env:
44-
DISPLAY: :10
36+
- name: npm test
37+
uses: GabrielBB/[email protected]
38+
with:
39+
run: npm run test
4540
- name: Build package
4641
if: runner.os == 'Linux'
4742
run: |

src/test/runTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function main() {
1717
// Download VS Code, unzip it and run the integration test
1818
await runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs });
1919
} catch (err) {
20-
console.error("Failed to run tests");
20+
console.error("Failed to run tests", err);
2121
process.exit(1);
2222
}
2323
}

0 commit comments

Comments
 (0)