Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/lua-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Lua tests

on:
push:
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
test:
name: Lua 5.1 / Busted
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Check out repository
uses: actions/checkout@v6

- name: Install Lua 5.1.5
uses: leafo/gh-actions-lua@v13
with:
luaVersion: "5.1.5"

- name: Install LuaRocks
uses: leafo/gh-actions-luarocks@v6

- name: Install Busted
run: luarocks install busted 2.3.0-1

- name: Run tests
run: |
chmod +x tests/run_tests.sh
make test
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: test clean

# Run the Busted unit test suite for plugin modules.
# Delegates to run_tests.sh (the authoritative runner) so flags are only defined once.
test:
./tests/run_tests.sh

# Remove generated/test artifacts
clean:
rm -f tests/spec/*.gc* 2>/dev/null || true
Loading
Loading