Skip to content

feat: automated testing #5

feat: automated testing

feat: automated testing #5

Workflow file for this run

name: Unit Tests
on: [pull_request, workflow_dispatch]
jobs:
lua-unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup lua
uses: leafo/gh-actions-lua@v9
with:
luaVersion: '5.1'
- name: Setup luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Setup dependencies
run: |
luarocks install busted
- name: Run test
uses: lunarmodules/[email protected]
with:
args: --run=ci --output=junit > busted.xml
- name: Report test
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: 'busted.xml'
check_name: 'Test Report'