From 873e47d42bf04b21eb36b1de1cf5b41aac4bb582 Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Mon, 23 Mar 2026 21:59:26 -0700 Subject: [PATCH] new actions --- .github/workflows/nix_ci.yml | 49 +++++++++++++++--------------------- 1 file changed, 20 insertions(+), 29 deletions(-) diff --git a/.github/workflows/nix_ci.yml b/.github/workflows/nix_ci.yml index fd6b9f0..827d347 100644 --- a/.github/workflows/nix_ci.yml +++ b/.github/workflows/nix_ci.yml @@ -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 - with: - submodules: recursive + - name: Checkout repository + uses: actions/checkout@v4 - - uses: actions/setup-python@v2 - with: - python-version: '3.10' + - name: Setup Lua + uses: leafo/gh-actions-lua@v10 + with: + luaVersion: ${{ matrix.luaVersion }} - - name: Setup env - run: | - pip install hererocks - hererocks lua-pkg --${{ matrix.lua }} -rlatest + - name: Verify Lua version + run: lua -v - - 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 + - name: Run unit tests + run: | + # Replace with your actual test file + lua tests/multi_test.lua \ No newline at end of file