Update packages #45
This file contains 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: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
busted: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
LUA_VERSION: [ 5.2, 5.3 ] | |
env: | |
LUAENV: luaenv | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install busted | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install git+https://github.com/luarocks/hererocks | |
python -m hererocks ${LUAENV} -l ${{ matrix.LUA_VERSION }} -r latest | |
source ${LUAENV}/bin/activate | |
luarocks install dkjson | |
luarocks install busted | |
luarocks install luacov | |
luarocks install luacov-multiple | |
lua -v | |
busted --version | |
- name: Test with busted | |
run: | | |
source ${LUAENV}/bin/activate | |
busted -c src/ | |
- name: Show coverage summary | |
run: | | |
sed -n -E '/^File.+Hits.+Missed.+Coverage$/,$p' luacov.report.out |