infra CI: Upload unit test result to artifact

Users can download the unit test result list from PR-> Checks -> Build Test -> Artifacts.
This commit is contained in:
JunsuChoi 2021-06-17 17:31:41 +09:00 committed by Hermet Park
parent 0d28bdfc07
commit d92a2c25f6
2 changed files with 8 additions and 3 deletions

View file

@ -24,7 +24,7 @@ jobs:
cd build
sudo ninja -C . install
example_build:
examples:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
@ -44,7 +44,7 @@ jobs:
cd build
sudo ninja -C . install
test_build:
unit_test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
@ -68,3 +68,8 @@ jobs:
meson . build -Dtests=true --errorlogs
cd build
sudo ninja -C . install test
- uses: actions/upload-artifact@v2
with:
name: UnitTestReport
path: build/meson-logs/testlog.txt

View file

@ -10,7 +10,7 @@ tests = executable('tvgUnitTests',
include_directories : headers,
link_with : thorvg_lib)
test('Unit Tests', tests)
test('Unit Tests', tests, args : ['--success'])
if get_option('bindings').contains('capi') == true
subdir('capi')