diff --git a/.github/workflows/test_on_push.yaml b/.github/workflows/test_on_push.yaml index 6cf1238..5ff9a79 100644 --- a/.github/workflows/test_on_push.yaml +++ b/.github/workflows/test_on_push.yaml @@ -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 . diff --git a/Makefile b/Makefile index 6a9fecb..1378ec0 100644 --- a/Makefile +++ b/Makefile @@ -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