new actions

This commit is contained in:
2026-03-23 21:59:26 -07:00
parent f8265fbb3b
commit 873e47d42b
+19 -28
View File
@@ -1,41 +1,32 @@
name: Build & Run tests Ubuntu
name: Lua Unit Tests (Matrix)
on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]
jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build-type: [Release] # Debug
lua: ["lua 5.1", "lua 5.2", "lua 5.3", "lua 5.4", "luajit 2.1.0-beta3"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit-2.1.0-beta3"]
steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
submodules: recursive
luaVersion: ${{ matrix.luaVersion }}
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Verify Lua version
run: lua -v
- name: Setup env
- name: Run unit tests
run: |
pip install hererocks
hererocks lua-pkg --${{ matrix.lua }} -rlatest
- name: Install lanes and multi
run: |
source ${{github.workspace}}/lua-pkg/bin/activate
luarocks install lanes
luarocks install rockspecs/multi-16.0-0.rockspec
- name: Run Tests
run: |
source ${{github.workspace}}/lua-pkg/bin/activate
lua tests/runtests.lua
# Replace with your actual test file
lua tests/multi_test.lua