2022-03-19 18:58:52 +01:00
|
|
|
|
name: Test build
|
2022-03-19 18:55:11 +01:00
|
|
|
|
|
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
2022-03-19 18:58:52 +01:00
|
|
|
|
name: Test build on Linux
|
2022-03-19 18:55:11 +01:00
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|
luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty"]
|
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
- name: Setup ‘lua’
|
|
|
|
|
uses: leafo/gh-actions-lua@v9
|
|
|
|
|
with:
|
|
|
|
|
luaVersion: ${{ matrix.luaVersion }}
|
|
|
|
|
- name: Setup ‘luarocks’
|
|
|
|
|
uses: leafo/gh-actions-luarocks@v4
|
2022-03-19 18:58:52 +01:00
|
|
|
|
- name: Make and install locally
|
2022-03-19 18:55:11 +01:00
|
|
|
|
run: |
|
2022-03-19 18:58:52 +01:00
|
|
|
|
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
|