Skip to content

Lua 5.5: Support 'global' keyword and fix usage and documentation #273

Lua 5.5: Support 'global' keyword and fix usage and documentation

Lua 5.5: Support 'global' keyword and fix usage and documentation #273

Workflow file for this run

name: Busted
on: [ push, pull_request ]
jobs:
busted:
strategy:
fail-fast: false
matrix:
luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit" , "luajit-openresty" ]
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup ‘lua’
if: ${{ !startsWith(matrix.luaVersion, 'luajit') }}
uses: luarocks/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
# For the multithreading tests (lanes) to work with
# LuaJIT / OpenResty interpreters, we have to build LuaJIT / OpenResty
# with the setting `-DLUAJIT_USE_SYSMALLOC` turned on,
# because the memory allocator employed by these interpreters
# does NOT work well with lanes: see
# https://github.com/LuaLanes/lanes/issues/217#issuecomment-1665856470
- name: Setup ‘luajit’
if: ${{ startsWith(matrix.luaVersion, 'luajit') }}
uses: luarocks/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
luaCompileFlags: XCFLAGS=-DLUAJIT_USE_SYSMALLOC
- name: Setup ‘luarocks’
uses: luarocks/gh-actions-luarocks@master
- name: Setup dependencies
run: |
luarocks install --deps-only luacheck-dev-1.rockspec
luarocks install busted
luarocks install lanes # required for parallel execution
luarocks install luautf8 # required for decoder unit test
luarocks install luasocket # required for profiler unit test
luarocks install luacov-coveralls
- name: Run regression tests
run: busted -c -v
- name: Report test coverage
if: success()
continue-on-error: true
run: luacov-coveralls -i src/luacheck -e .luarocks
env:
COVERALLS_REPO_TOKEN: ${{ github.token }}