From d92a2c25f6cd58d7be671b0e517453c874eca927 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Thu, 17 Jun 2021 17:31:41 +0900 Subject: [PATCH] infra CI: Upload unit test result to artifact Users can download the unit test result list from PR-> Checks -> Build Test -> Artifacts. --- .github/workflows/actions.yml | 9 +++++++-- test/meson.build | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 80b8088b..6b761f6e 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -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 diff --git a/test/meson.build b/test/meson.build index f4cfcf6a..ab0b7f5a 100644 --- a/test/meson.build +++ b/test/meson.build @@ -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')