Skip to content

Commit 9a14f0c

Browse files
committed
fix: add missing @vscode/test-electron dependency for CI tests
1 parent 840c54d commit 9a14f0c

File tree

4 files changed

+5245
-1437
lines changed

4 files changed

+5245
-1437
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ jobs:
3434
run: npm run compile
3535

3636
- name: Run tests
37-
uses: coactions/setup-xvfb@v1
38-
with:
39-
run: npm test
37+
run: xvfb-run -a npm test
38+
if: runner.os == 'Linux'
39+
40+
- name: Run tests
41+
run: npm test
42+
if: runner.os != 'Linux'
4043

4144
package:
4245
runs-on: ubuntu-latest
@@ -57,8 +60,7 @@ jobs:
5760

5861
- name: Package extension
5962
run: |
60-
npm install -g @vscode/vsce
61-
vsce package
63+
npx @vscode/vsce package
6264
6365
- name: Upload VSIX artifact
6466
uses: actions/upload-artifact@v4

.github/workflows/release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ jobs:
2929

3030
- name: Package extension
3131
run: |
32-
npm install -g @vscode/vsce
33-
vsce package
32+
npx @vscode/vsce package
3433
3534
- name: Get version from tag
3635
id: get_version
@@ -47,11 +46,9 @@ jobs:
4746
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4847

4948
- name: Publish to VS Code Marketplace
50-
run: vsce publish --pat ${{ secrets.VSCE_PAT }}
51-
if: ${{ secrets.VSCE_PAT != '' }}
49+
if: ${{ secrets.VSCE_PAT }}
50+
run: npx @vscode/vsce publish --pat ${{ secrets.VSCE_PAT }}
5251

5352
- name: Publish to Open VSX Registry
54-
run: |
55-
npm install -g ovsx
56-
ovsx publish *.vsix --pat ${{ secrets.OVSX_PAT }}
57-
if: ${{ secrets.OVSX_PAT != '' }}
53+
if: ${{ secrets.OVSX_PAT }}
54+
run: npx ovsx publish *.vsix --pat ${{ secrets.OVSX_PAT }}

0 commit comments

Comments
 (0)