Skip to content

Fixed Github Actions .yml file - manual triggering allowed and if con… #13

Fixed Github Actions .yml file - manual triggering allowed and if con…

Fixed Github Actions .yml file - manual triggering allowed and if con… #13

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch: # Enables manual triggering
jobs:
build:
strategy:
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