Skip to content

Show global data items in Variables panel #45

Show global data items in Variables panel

Show global data items in Variables panel #45

Workflow file for this run

name: Run VSCode Extension Tests
on:
push:
branches:
- superbol-vscode-debug
pull_request:
branches:
- superbol-vscode-debug
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node:
- 20
code-version:
- stable
- 1.66.0
include:
- { os: ubuntu-latest, node: 22, code-version: stable }
- { os: ubuntu-latest, node: 24, code-version: stable }
runs-on: ${{ matrix.os }}
name: Test with Node ${{ matrix.node }} and VSCode ${{ matrix.code-version }} on ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
# node-version-file: 'package.json'
- name: Install dependencies
run: npm install
- name: Compile
run: npm run compile
- name: Cache VSCode test directory
uses: actions/cache@v4
with:
path: .vscode-test
key: ${{ runner.os }}-${{ matrix.node }}-${{ matrix.code-version }}-vscode-test-${{ hashFiles('package-lock.json') }}
- name: Run tests
run: xvfb-run -a npm test -- --code-version ${{ matrix.code-version }}
if: runner.os == 'Linux'
- name: Run tests
run: npm test -- --code-version ${{ matrix.code-version }}
if: runner.os != 'Linux'