mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
873e47d42b | ||
|
|
f8265fbb3b | ||
|
|
b995b1c0a7 |
@@ -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
|
|
||||||
+6
-4
@@ -1,7 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
Table of contents
|
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.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.1 - Bug fix](#update-1601---bug-fix)</br>
|
||||||
[Update 16.0.0 - Connecting the dots](#update-1600---getting-the-priorities-straight)</br>
|
[Update 16.0.0 - Connecting the dots](#update-1600---getting-the-priorities-straight)</br>
|
||||||
@@ -629,13 +629,15 @@ Added
|
|||||||
|
|
||||||
Output:
|
Output:
|
||||||
```
|
```
|
||||||
I run before all and control if things go!
|
I run before all and control if execution should continue!
|
||||||
Hi 3
|
Hi 3
|
||||||
Hi 1
|
Hi 1
|
||||||
|
I run before all and control if execution should continue!
|
||||||
|
Hi 3
|
||||||
|
Hi 2
|
||||||
Test 1
|
Test 1
|
||||||
Test 2
|
Test 2
|
||||||
Test 3
|
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:
|
**Note:** Concat of connections does modify internal events on both connections depending on the direction func .. conn or conn .. func See implemention below:
|
||||||
@@ -3670,4 +3672,4 @@ end
|
|||||||
event:Manager()
|
event:Manager()
|
||||||
--event:CManager()
|
--event:CManager()
|
||||||
--event:UManager() -- One of the few things that lived in name and spirit the u just became lowercase haha
|
--event:UManager() -- One of the few things that lived in name and spirit the u just became lowercase haha
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user