Improved debug info for tests to show the error message #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: # Enables manual triggering | |
jobs: | |
build: | |
strategy: | |
fail-fast: false # Run all tests, even if one fails | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Tests (Linux) | |
if: ${{ runner.os == 'Linux' }} | |
run: xvfb-run -a npm test | |
- name: Run Tests (macOS and Windows) | |
if: ${{ runner.os != 'Linux' }} | |
run: npm test |