mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
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:
parent
0d28bdfc07
commit
d92a2c25f6
2 changed files with 8 additions and 3 deletions
9
.github/workflows/actions.yml
vendored
9
.github/workflows/actions.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
||||||
cd build
|
cd build
|
||||||
sudo ninja -C . install
|
sudo ninja -C . install
|
||||||
|
|
||||||
example_build:
|
examples:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -44,7 +44,7 @@ jobs:
|
||||||
cd build
|
cd build
|
||||||
sudo ninja -C . install
|
sudo ninja -C . install
|
||||||
|
|
||||||
test_build:
|
unit_test:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -68,3 +68,8 @@ jobs:
|
||||||
meson . build -Dtests=true --errorlogs
|
meson . build -Dtests=true --errorlogs
|
||||||
cd build
|
cd build
|
||||||
sudo ninja -C . install test
|
sudo ninja -C . install test
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: UnitTestReport
|
||||||
|
path: build/meson-logs/testlog.txt
|
||||||
|
|
|
@ -10,7 +10,7 @@ tests = executable('tvgUnitTests',
|
||||||
include_directories : headers,
|
include_directories : headers,
|
||||||
link_with : thorvg_lib)
|
link_with : thorvg_lib)
|
||||||
|
|
||||||
test('Unit Tests', tests)
|
test('Unit Tests', tests, args : ['--success'])
|
||||||
|
|
||||||
if get_option('bindings').contains('capi') == true
|
if get_option('bindings').contains('capi') == true
|
||||||
subdir('capi')
|
subdir('capi')
|
||||||
|
|
Loading…
Add table
Reference in a new issue