From 2d265423d5bdb43d6943e9dfedae9fe146a1c5f0 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 24 Feb 2021 15:23:48 +0300 Subject: workflows/ci.yml: show test logs --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.github/workflows/ci.yml') 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: -- cgit v1.2.3