mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-02-06 03:52:49 +01:00
Ci: Run regression tests after successful build
This commit is contained in:
parent
2cc6f8a55c
commit
fdd741da5c
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -1,10 +1,10 @@
|
|||||||
name: Check build
|
name: Test build
|
||||||
|
|
||||||
on: [ push, pull_request ]
|
on: [ push, pull_request ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Check build
|
name: Test build on Linux
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -19,6 +19,23 @@ jobs:
|
|||||||
luaVersion: ${{ matrix.luaVersion }}
|
luaVersion: ${{ matrix.luaVersion }}
|
||||||
- name: Setup ‘luarocks’
|
- name: Setup ‘luarocks’
|
||||||
uses: leafo/gh-actions-luarocks@v4
|
uses: leafo/gh-actions-luarocks@v4
|
||||||
- name: Make with Luarocks
|
- name: Make and install locally
|
||||||
run: |
|
run: |
|
||||||
luarocks make --pack-binary-rock -- luasocket-scm-3.rockspec
|
export DEBUG=DEBUG
|
||||||
|
luarocks --local make -- luasocket-scm-3.rockspec
|
||||||
|
- name: Run regression tests
|
||||||
|
run: |
|
||||||
|
eval $(luarocks --local path)
|
||||||
|
cd test
|
||||||
|
lua hello.lua
|
||||||
|
lua testsrvr.lua > /dev/null &
|
||||||
|
lua testclnt.lua
|
||||||
|
lua stufftest.lua
|
||||||
|
lua excepttest.lua
|
||||||
|
lua test_bind.lua
|
||||||
|
lua test_getaddrinfo.lua
|
||||||
|
lua ltn12test.lua
|
||||||
|
lua mimetest.lua
|
||||||
|
lua urltest.lua
|
||||||
|
lua test_socket_error.lua
|
||||||
|
kill %1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user