diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-02-24 15:23:48 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-02-24 16:07:09 +0300 |
commit | 2d265423d5bdb43d6943e9dfedae9fe146a1c5f0 (patch) | |
tree | cab983c4fd40325d2b8c04278cc91e4e15f86eca /.github/workflows | |
parent | update cmake-common (diff) | |
download | winapi-common-2d265423d5bdb43d6943e9dfedae9fe146a1c5f0.tar.gz winapi-common-2d265423d5bdb43d6943e9dfedae9fe146a1c5f0.zip |
workflows/ci.yml: show test logs
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec55606..aaec253 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,6 +92,12 @@ jobs: ) ..\install\bin\winapi-common-unit-tests.exe $args if: runner.os == 'Windows' + - name: Check test report (w/o console tests) + run: | + cat ..\test_logs\report.txt + $last_line = Get-Content ..\test_logs\report.txt -Tail 1 + $($last_line -eq '*** No errors detected') -or $(throw $last_line) + if: runner.os == 'Windows' - name: Run unit tests (console tests) run: | $args = @( @@ -108,6 +114,12 @@ jobs: -ArgumentList $args ` -Wait if: runner.os == 'Windows' + - name: Check test report (console tests) + run: | + cat ..\test_logs\report_console.txt + $last_line = Get-Content ..\test_logs\report_console.txt -Tail 1 + $($last_line -eq '*** No errors detected') -or $(throw $last_line) + if: runner.os == 'Windows' - name: Upload the test logs uses: actions/upload-artifact@v2 with: |