Skip to content

Workflow.

Workflow. #7

Workflow file for this run

---
name: UnitTest
# Controls when the action will run.
on:
push:
# branches: ["dev", "dev-update"]
pull_request:
workflow_dispatch:
jobs:
UnitTest:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install dependencies
run: npm i
- if: runner.os == 'MacOS'
run: |
npm i gulp gulp-cli -g
gulp
- if: runner.os == 'Linux'
run: xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' npm run test
- if: runner.os == 'Windows'
run: npm run test