mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f35265a8e | ||
|
|
f8265fbb3b | ||
|
|
b995b1c0a7 |
@@ -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
|
||||
+5
-3
@@ -1,7 +1,7 @@
|
||||
# Changelog
|
||||
Table of contents
|
||||
---
|
||||
[Update 16.2.0 - TimeStamps and UUIDs](#update-1620---timestamps-and-uuids)</br>
|
||||
[Update 16.2.0 - TimeStamps and UUIDs](#update-1620---timestamps-and-uuids-and-bugfixes)</br>
|
||||
[Update 16.1.0 - The Flow State](#update-1610---the-flow-state)</br>
|
||||
[Update 16.0.1 - Bug fix](#update-1601---bug-fix)</br>
|
||||
[Update 16.0.0 - Connecting the dots](#update-1600---getting-the-priorities-straight)</br>
|
||||
@@ -629,13 +629,15 @@ Added
|
||||
|
||||
Output:
|
||||
```
|
||||
I run before all and control if things go!
|
||||
I run before all and control if execution should continue!
|
||||
Hi 3
|
||||
Hi 1
|
||||
I run before all and control if execution should continue!
|
||||
Hi 3
|
||||
Hi 2
|
||||
Test 1
|
||||
Test 2
|
||||
Test 3
|
||||
I run after it all!
|
||||
```
|
||||
|
||||
**Note:** Concat of connections does modify internal events on both connections depending on the direction func .. conn or conn .. func See implemention below:
|
||||
|
||||
Reference in New Issue
Block a user