Skip to content

Workflow file for this run

name: Run VSCode Extension Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Compile
run: npm run compile
- name: Run tests
run: xvfb-run -a npm test
if: runner.os == 'Linux'
- name: Run tests
run: npm test
if: runner.os != 'Linux'