Merge pull request #8 from moonlibs/fix-infinite-rate #61
Workflow file for this run
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: Testing with unit tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
run-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: tarantool/setup-tarantool@v2 | |
with: | |
tarantool-version: '2.10.4' | |
- name: install luacov-console | |
run: tarantoolctl rocks install luacov-console | |
- name: install luacov-coveralls | |
run: tarantoolctl rocks install --server=http://luarocks.org luacov-coveralls | |
- name: setup perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: 5.18.4 | |
- name: show perl version | |
run: | | |
perl -v | |
- name: install TAP::Harness | |
run: | | |
cpanm -v | |
cpanm --notest TAP::Harness | |
- name: run tests | |
env: | |
LUACOV_ENABLE: true | |
run: | | |
make test | |
- name: print luacov-console report | |
run: .rocks/bin/luacov-console "$(pwd)" && .rocks/bin/luacov-console -s | |
- name: publish coveralls report | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: .rocks/bin/luacov-coveralls -v |