Skip to content

DON'T MERGE!!! Rerun tests #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
14 changes: 14 additions & 0 deletions .github/workflows/test_on_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,31 @@ jobs:
curl -sSL https://zipkin.io/quickstart.sh | bash -s
tarantoolctl rocks install ldoc --server=http://rocks.moonscript.org
tarantoolctl rocks install luacheck 0.25.0
tarantoolctl rocks install luacov 0.13.0
tarantoolctl rocks install luacov-reporters 0.1.0
export PATH=.rocks/bin:$PATH
tarantoolctl rocks make

- name: Run linter
run: |
.rocks/bin/luacheck ./tracing --config=.luacheckrc --no-redefined --no-unused-args
.rocks/bin/luacheck ./test --config=.luacheckrc --no-redefined --no-unused-args

- name: Setup Java 17
uses: actions/setup-java@v2
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'

- name: Check Java version
run: java -version

- name: Run tests
run: |
java -jar zipkin.jar &
sleep 10
make unit

- name: Build doc
run: .rocks/bin/ldoc -t "$ROCK_NAME-${version}" -p "$ROCK_NAME (${version})" --all .

Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ unit:
TEST_RESULT=0; \
for f in $(TEST_FILES); do \
echo -e '\nExecuting test '$(basename $$f)'...'; \
$$f; \
let TEST_RESULT=$$TEST_RESULT+$$?; \
tarantool -e "require('luacov.runner')(); dofile('$$f')" || TEST_RESULT=$$?; \
[ $$TEST_RESULT -gt 0 ] && exit $$TEST_RESULT; \
done; \
luacov; \
luacov-console; \
exit $$TEST_RESULT
Loading