Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
matrix:
tarantool:
- 'debug-master'
- '3.1'

include:
- tarantool: '3.1'
coveralls: true
env:
TNT_DEBUG_PATH: /home/runner/tnt-debug

Expand Down Expand Up @@ -102,3 +103,9 @@ jobs:
- run: make check

- run: make test

- name: Send code coverage to 'coveralls.io'
run: make coveralls
if: ${{ matrix.coveralls }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# `make -f /path/to/project/Makefile`.
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
PROJECT_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
LUACOV_REPORT := $(PROJECT_DIR)/luacov.report.out
LUACOV_STATS := $(PROJECT_DIR)/luacov.stats.out

# Look for .rocks/bin directories upward starting from the project
# directory.
Expand Down Expand Up @@ -37,7 +39,21 @@ luacheck:
test:
luatest -v --shuffle all:${SEED}

$(LUACOV_STATS): test-coverage

test-coverage:
luatest -v --coverage --shuffle all:${SEED}
sed -i -e 's@'"$$(realpath .)"'/@@' $(LUACOV_STATS)
cd $(PROJECT_DIR) && luacov roles/
grep -A999 '^Summary' $(LUACOV_REPORT)

coveralls: $(LUACOV_STATS)
echo "Send code coverage data to the coveralls.io service"
luacov-coveralls --include ^roles --verbose --repo-token ${GITHUB_TOKEN}

deps:
tt rocks install luatest 1.0.1
tt rocks install luacheck 0.26.0
tt rocks install luacov 0.13.0-1
tt rocks install luacov-coveralls 0.2.3-1 --server=http://luarocks.org
tt rocks make
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<a href='https://coveralls.io/github/tarantool/metrics-export-role?branch=master'>
<img src='https://coveralls.io/repos/github/tarantool/metrics-export-role/badge.svg?branch=master' alt='Coverage Status' />
</a>

# metrics-export-role

`roles.metrics-export` is a role for Tarantool 3. It allows to export metrics
Expand Down