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: on:
push: push:
branches: [ master ] branches: [ main ]
pull_request: pull_request:
branches: [ master ] branches: [ main ]
jobs: jobs:
build: test:
runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false
matrix: matrix:
build-type: [Release] # Debug luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit-2.1.0-beta3"]
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 }}
steps: steps:
- uses: actions/checkout@v2 - name: Checkout repository
uses: actions/checkout@v4
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with: with:
submodules: recursive luaVersion: ${{ matrix.luaVersion }}
- uses: actions/setup-python@v2 - name: Verify Lua version
with: run: lua -v
python-version: '3.10'
- name: Setup env - name: Run unit tests
run: | run: |
pip install hererocks # Replace with your actual test file
hererocks lua-pkg --${{ matrix.lua }} -rlatest lua tests/multi_test.lua
- 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