Skip to content
Merged
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
32 changes: 21 additions & 11 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
name: Lint and Test
name: Run VSCode Extension Tests

on:
push:
branches:
- master
branches: [main]
pull_request:
branches:
- master
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install dependencies
run: npm ci
# Runs both the test and lint commands
- name: Run tests

- name: Compile
run: npm run compile

- name: Run tests (Linux)
run: xvfb-run -a npm test
if: runner.os == 'Linux'

- name: Run tests (Windows/Mac)
run: npm test
if: runner.os != 'Linux'
Loading