aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml22
1 files changed, 18 insertions, 4 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index dbbff56..3f5dd8f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -58,8 +58,22 @@ jobs:
- name: Build foo.exe
run: |
- $flags = '-std=c++11','-o','foo','foo.cpp'
+ $flags = '-std=c++14','-o','foo','foo.cpp'
& '${{ steps.setup.outputs.gxx }}' $flags
- if ('${{ runner.os }}' -eq 'Windows') {
- .\foo.exe
- }
+
+ - name: Run foo.exe
+ run: |
+ $expected = @"
+ Doing something #1
+ Doing something #2
+ Doing something #3
+ "@
+
+ $actual = & (Join-Path . foo.exe)
+ $actual = $actual -join [Environment]::NewLine
+
+ $($actual -eq $expected) -or $(throw @"
+ Unexpected output:
+ $actual
+ "@)
+ if: runner.os == 'Windows'