mirror of
https://github.com/rayaman/multi.git
synced 2026-09-04 23:17:35 -04:00
new actions (#78)
This commit is contained in:
@@ -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
|
|
||||||
Reference in New Issue
Block a user