Skip to content

Logic fix

Logic fix #2379

Workflow file for this run

# The workflow name
name: Run unit tests
# Controls when the workflow will run
# - push will trigger when a push to any branch is made (only when any lua file is changed)
# - pull_request will trigger when a PR is made and when new commits are made on a PR (only when any lua file is changed)
# - workflow_dispatch is a manual trigger
on:
push:
paths:
- '**.lua'
pull_request:
paths:
- '**.lua'
workflow_dispatch:
# The list of jobs this workflow executes
jobs:
test:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Lua
uses: xpol/[email protected]
- name: Run unit tests
run: |
cd scripts/test
lua CourseManagerTest.lua
lua CpMathUtilTest.lua
lua MovingAverageTest.lua
lua PolygonTest.lua