From 9b71c16666884bcdea7b77b209ca138cd327d14e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 1 Jan 2021 11:09:14 +0300 Subject: workflows/test.yml: split building and running foo.exe --- .github/workflows/test.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dc8e74f..6aa8c50 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,4 +75,17 @@ jobs: $flags += '-lpthread' } & '${{ steps.setup.outputs.clangxx }}' $flags - & (Join-Path . foo) + + - name: Run foo.exe + run: | + $expected = @" + Doing something #1 + Doing something #2 + Doing something #3 + "@ + $actual = & (Join-Path . foo) + $actual = $actual -join [Environment]::NewLine + $($actual -eq $expected) -or $(throw @" + Unexpected output: + $actual + "@) -- cgit v1.2.3