forked from Courseplay/Courseplay_FS22
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 869 Bytes
/
unit-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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/setup-lua@v0.3
- name: Run unit tests
run: |
cd scripts/test
lua CourseManagerTest.lua
lua CpMathUtilTest.lua
lua MovingAverageTest.lua
lua PolygonTest.lua