Skip to content

Normalize TypeScript project config #37

Normalize TypeScript project config

Normalize TypeScript project config #37

Workflow file for this run

name: Test
defaults:
run:
shell: bash
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Test:
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Fetch Repository
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 24.13.0
cache: 'npm'
- name: Install Modules
run: npm ci
- name: Run Unit Tests
if: matrix.os == 'ubuntu-22.04'
id: e2e-tests
continue-on-error: true
run: |
mkdir -p test/__diff__
touch test/__diff__/.empty
sudo apt-get update -qq
sudo apt-get install -qq libgles2-mesa-dev libxcb-cursor0 libxcb-icccm4 libxcb-keysyms1 libxcb-shape0 libxcb-xkb1 libxkbcommon-x11-0
sudo apt-get install -qq libdbus-1-3 libxcb-image0 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0
QT_QPA_PLATFORM=xcb xvfb-run --auto-servernum npm run test:ci
- uses: actions/upload-artifact@v7
if: matrix.os == 'ubuntu-22.04'
with:
name: __diff__
path: test/__diff__
retention-days: 1
compression-level: 0
overwrite: true