Skip to content

handle integration #1956

handle integration

handle integration #1956

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
# Windows throws false positives with linting because of CRLF
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Run tests (ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
export DISPLAY=:99
xvfb-run -n 99 -s '-screen 0 1024x768x24' npm run test
pkill Xvfb
- name: Run tests (macos, windows)
if: ${{ !(matrix.os == 'ubuntu-latest') }}
run: npm run test