feat: automated testing #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |