workflows/test.yml: split building and running foo.exe
This commit is contained in:
parent
8d8d2c1c05
commit
9b71c16666
1 changed files with 14 additions and 1 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
@ -75,4 +75,17 @@ jobs:
|
||||||
$flags += '-lpthread'
|
$flags += '-lpthread'
|
||||||
}
|
}
|
||||||
& '${{ steps.setup.outputs.clangxx }}' $flags
|
& '${{ 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
|
||||||
|
"@)
|
||||||
|
|
Loading…
Add table
Reference in a new issue