Skip to content

ci(workflows): update #52

ci(workflows): update

ci(workflows): update #52

Workflow file for this run

name: Testing
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test on node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [22]
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- name: Preserve line endings
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v4
- name: Cache vscode installation
uses: actions/cache@v4
with:
path: .vscode-test
key: vscode-installation-${{ matrix.os }}-${{ github.sha }}
restore-keys: vscode-installation-${{ matrix.os }}-
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Start xvfb
run: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
shell: bash
- name: Install & test
run: |
npm ci
npm test
env:
DISPLAY: ":99.0"