aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/run-threads/action.yml
blob: 47de1c9bbf1183322f3fd102c903ec818806cb58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Run threads.exe
description: Run threads.exe and verify its output
runs:
  using: composite
  steps:
    - run: |
        $expected = @"
        Doing something #1
        Doing something #2
        Doing something #3
        "@

        $actual = & (Join-Path . test threads.exe)
        $actual = $actual -join [Environment]::NewLine

        echo @"
        Expected output:
        $expected
        "@
        echo @"
        Actual output:
        $actual
        "@

        $($actual -eq $expected) -or $(throw "Unexpected output!")
      shell: pwsh