Skip to content

Bump the prod-dependencies group with 2 updates #1084

Bump the prod-dependencies group with 2 updates

Bump the prod-dependencies group with 2 updates #1084

Workflow file for this run

name: Tests (Desktop & Web)
on:
push:
branches:
- master
- dev
# Tests should always run on Pull Requests in order to catch regressions early
pull_request:
workflow_dispatch: # in case we need to regenerate test coverage
permissions: {}
jobs:
desktop-tests:
name: Desktop (Electron) tests
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
name: macOS
- os: windows-latest
name: Windows
- os: ubuntu-latest
name: Linux
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Cache VS Code test downloads
uses: actions/cache@v5
with:
key: neuropilot-tests-vscode-${{ github.repository }}-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
neuropilot-tests-vscode-${{ github.repository }}-${{ runner.os }}-
path: .vscode-test/
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: ./package.json
cache: 'pnpm'
cache-dependency-path: './pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- name: Run desktop tests (Linux)
run: xvfb-run -a pnpm run test:desktop
if: runner.os == 'Linux'
- name: Run desktop tests (macOS/Windows)
run: pnpm run test:desktop
if: runner.os != 'Linux'
web-tests:
name: Web tests (browser matrix)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Cache VS Code web test downloads
uses: actions/cache@v5
with:
key: neuropilot-tests-vscode-web-v2-${{ github.repository }}-${{ runner.os }}
path: .vscode-test-web/
- name: Cache Playwright browsers
uses: actions/cache@v5
with:
key: neuropilot-playwright-v2-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
path: ~/.cache/ms-playwright
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: ./package.json
cache: 'pnpm'
cache-dependency-path: './pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- name: Ensure Playwright browsers are installed (Chromium, Firefox, WebKit)
run: pnpm exec playwright install --with-deps
- name: Build web extension and test bundle (browser)
run: pnpm run build:web && pnpm run test:web:browser:esbuild
- name: Run web tests (headless)
run: pnpm exec vscode-test-web --headless --browser=${{ matrix.browser }} --extensionDevelopmentPath=. --extensionTestsPath=out/web/test/browser.js test-playground