-
Notifications
You must be signed in to change notification settings - Fork 13
31 lines (29 loc) · 928 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Testing with unit tests
on:
- push
- pull_request
jobs:
run-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tarantool/setup-tarantool@v3
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: install luatest
run: tarantoolctl rocks install luatest
- name: run tests
env:
LUACOV_ENABLE: true
run: |
.rocks/bin/luatest --coverage -b -c -v 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