Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/vscode-extension-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
node-version: [20.x]
node-version: [22.x]

name: Test VS Code Extension on ${{ matrix.os }}

env:
VSCODE_TEST_CMD: npm run test:vsix

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -37,20 +40,22 @@ jobs:

- name: Install dependencies for the VS Code extension
working-directory: ./vscode-extension
run: npm install
run: npm ci

- name: Package VS Code extension
working-directory: ./vscode-extension
run: npx @vscode/vsce package --allow-missing-repository --baseContentUrl https://github.com/Leoo-code/FamixTypeScriptImporter/blob/dev/vscode-extension

# Linux runners are headless and have no display server, so Xvfb is needed to run VS Code tests.
- name: Run VS Code extension tests (Linux)
uses: coactions/setup-xvfb@v1
if: runner.os == 'Linux'
with:
run: npm run test:client
run: ${{ env.VSCODE_TEST_CMD }}
working-directory: ./vscode-extension

# Windows and macOS runners have a native display server, so no Xvfb wrapper is needed.
- name: Run VS Code extension tests (Windows/macOS)
if: runner.os != 'Linux'
working-directory: ./vscode-extension
run: npm run test:client
run: ${{ env.VSCODE_TEST_CMD }}
Loading
Loading