Skip to content

Commit 5e20179

Browse files
committed
fix: ci for test
1 parent 6052506 commit 5e20179

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@ jobs:
2222

2323
- run: npm ci
2424
- run: npm run lint --if-present
25-
- run: npm test --if-present
2625
- run: npm run compile
26+
27+
- name: Install xvfb
28+
run: sudo apt-get update && sudo apt-get install -y xvfb
29+
30+
- name: Test (VS Code)
31+
run: xvfb-run -a npm test

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ jobs:
3434
- run: npm ci
3535
- run: npm run lint --if-present
3636
- run: npm run typecheck --if-present
37-
- run: npm test --if-present
3837
- run: npm run compile
3938

39+
- name: Install xvfb
40+
run: sudo apt-get update && sudo apt-get install -y xvfb
41+
42+
- name: Test (VS Code)
43+
run: xvfb-run -a npm test
44+
4045
- name: Configure git identity
4146
run: |
4247
git config user.name "github-actions[bot]"

0 commit comments

Comments
 (0)