build: add Lua 5.5 to test matrix #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Busted | |
| on: [ push, pull_request ] | |
| jobs: | |
| busted: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| luaVersion: [ "5.5", "5.4", "5.3", "5.2", "5.1", "luajit" ] # , "luajit-openresty" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup ‘lua’ | |
| uses: luarocks/gh-actions-lua@master | |
| with: | |
| luaVersion: ${{ matrix.luaVersion }} | |
| - 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 }} |