Skip to content

Commit e50455f

Browse files
committed
Fix by using shell cmd, instead of default pwsh, which swallows %errorlevel%
1 parent d43d6c6 commit e50455f

File tree

6 files changed

+20
-3
lines changed

6 files changed

+20
-3
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ jobs:
1717
uses: actions/setup-dotnet@v3
1818
# build it, test it, pack it
1919
- name: Run dotnet build (release)
20+
# see issue #105
21+
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
22+
shell: cmd
2023
run: ./build.cmd

.github/workflows/main.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
uses: actions/setup-dotnet@v3
2121
# build it, test it, pack it
2222
- name: Run dotnet build (release)
23+
# see issue #105
24+
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
25+
shell: cmd
2326
run: ./build.cmd
2427

2528
test-release:
@@ -36,6 +39,9 @@ jobs:
3639
uses: actions/setup-dotnet@v3
3740
# build it, test it, pack it
3841
- name: Run dotnet test - release
42+
# see issue #105
43+
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
44+
shell: cmd
3945
run: ./build.cmd ci -release
4046
- name: Publish test results - release
4147
uses: dorny/test-reporter@v1

.github/workflows/publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
uses: actions/setup-dotnet@v3
2121
# build it, test it, pack it, publish it
2222
- name: Run dotnet build (release, for nuget)
23+
# see issue #105
24+
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
2325
run: ./build.cmd
2426
- name: Nuget publish
2527
# skip-duplicate ensures that the 409 error received when the package was already published,

.github/workflows/test-report.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: dorny/test-reporter@v1
1717
with:
1818
artifact: test-results-release # artifact name
19-
name: Report release tests # Name of the check run which will be created
19+
name: Report release tests # Name of the check run which will be created
2020
path: '*.trx' # Path to test results (inside artifact .zip)
2121
reporter: dotnet-trx # Format of test results
2222

@@ -26,6 +26,6 @@ jobs:
2626
- uses: dorny/test-reporter@v1
2727
with:
2828
artifact: test-results-debug # artifact name
29-
name: Report debug tests # Name of the check run which will be created
29+
name: Report debug tests # Name of the check run which will be created
3030
path: '*.trx' # Path to test results (inside artifact .zip)
3131
reporter: dotnet-trx # Format of test results

.github/workflows/test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919

2020
# build it, test it
2121
- name: Run dotnet test - release
22+
# see issue #105
23+
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
24+
shell: cmd
2225
run: ./build.cmd ci -release
2326

2427
# upload test results
@@ -46,6 +49,9 @@ jobs:
4649

4750
# build it, test it
4851
- name: Run dotnet test - debug
52+
# see issue #105
53+
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
54+
shell: cmd
4955
run: ./build.cmd ci -debug
5056

5157
# upload test results

src/FSharp.Control.TaskSeq/Utils.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module ValueTaskExtensions =
1212
static member inline CompletedTask = Unchecked.defaultof<ValueTask>
1313

1414

15-
module ValueTask =
15+
module ValueTask
1616
/// A successfully completed ValueTask of boolean that has the value false.
1717
let False = ValueTask<bool>()
1818

0 commit comments

Comments
 (0)