1 Commits
Author SHA1 Message Date
server 7f35265a8e new actions (#78) 2026-03-23 21:59:47 -07:00
+20 -29
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
with: uses: actions/checkout@v4
submodules: recursive
- uses: actions/setup-python@v2 - name: Setup Lua
with: uses: leafo/gh-actions-lua@v10
python-version: '3.10' with:
luaVersion: ${{ matrix.luaVersion }}
- name: Setup env - name: Verify Lua version
run: | run: lua -v
pip install hererocks
hererocks lua-pkg --${{ matrix.lua }} -rlatest
- name: Install lanes and multi - name: Run unit tests
run: | run: |
source ${{github.workspace}}/lua-pkg/bin/activate # Replace with your actual test file
luarocks install lanes lua tests/multi_test.lua
luarocks install rockspecs/multi-16.0-0.rockspec
- name: Run Tests
run: |
source ${{github.workspace}}/lua-pkg/bin/activate
lua tests/runtests.lua