Fix test #138
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: recursive | |
- name: Install Lua | |
uses: leafo/gh-actions-lua@master | |
with: | |
luaVersion: 5.1 | |
- name: Install Luarocks | |
uses: leafo/gh-actions-luarocks@master | |
- name: Install Luarocks Packages | |
run: | | |
luarocks install busted | |
luarocks install luacheck | |
luarocks install luacov | |
luarocks install luacov-reporter-lcov | |
luarocks install luafilesystem | |
luarocks install md5 | |
- name: Verify LuaCheck | |
run: luacheck lib | |
- name: Run Tests | |
run: | | |
lua -lluacov spec.lua | |
luacov -r lcov | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: ./luacov.report.out |