From 3d232e8ff954bb0b17914690b02e2346591bcc96 Mon Sep 17 00:00:00 2001 From: Riley Smith Date: Fri, 20 Mar 2026 14:24:12 -0700 Subject: [PATCH 1/2] fix tests not running --- .github/workflows/lint_and_test.yml | 31 +++++++++++++++++++---------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index b75b3b0..401156d 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -1,28 +1,37 @@ -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" - cache: "npm" + node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm ci - # Runs both the test and lint commands + + - 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' From 42ee4f60501ae75ab354ba516fdb713c93de3de0 Mon Sep 17 00:00:00 2001 From: Riley Smith Date: Fri, 20 Mar 2026 14:28:42 -0700 Subject: [PATCH 2/2] setup caching --- .github/workflows/lint_and_test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index 401156d..fd0fc25 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -21,6 +21,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} + cache: "npm" - name: Install dependencies run: npm ci @@ -28,10 +29,10 @@ jobs: - name: Compile run: npm run compile - - name: Run tests + - name: Run tests (Linux) run: xvfb-run -a npm test if: runner.os == 'Linux' - - name: Run tests + - name: Run tests (Windows/Mac) run: npm test if: runner.os != 'Linux'