Skip to content

Much better

Much better #3602

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: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
# because atan2 is deprecated in 5.3
luaVersion: "5.2.4"
- name: Run unit tests
run: |
cd scripts/test
lua CourseManagerTest.lua
lua CpMathUtilTest.lua
lua MovingAverageTest.lua
- name: Run course generator unit tests
run: |
cd scripts/courseGenerator/test
lua BlockSequencerTest.lua
lua CacheMapTest.lua
lua CenterTest.lua
lua FieldTest.lua
lua FieldworkCourseTest.lua
lua FieldworkCourseMultiVehicleTest.lua
lua HeadlandConnectorTest.lua
lua LineSegmentTest.lua
lua PolygonTest.lua
lua PolylineTest.lua
lua SliderTest.lua
lua RowPatternTest.lua
lua RowTest.lua
lua SliderTest.lua
lua TransformTest.lua
lua VertexTest.lua
lua WrapAroundIndexTest.lua