-
Notifications
You must be signed in to change notification settings - Fork 8
63 lines (53 loc) · 1.76 KB
/
test.yaml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: ci-test
on: [pull_request]
jobs:
test-release:
name: Test Release Build
runs-on: windows-latest
steps:
# checkout the code
- name: checkout-code
uses: actions/checkout@v3
with:
fetch-depth: 0
# setup dotnet based on global.json
- name: setup-dotnet
uses: actions/setup-dotnet@v3
# build it, test it
- name: Run dotnet test - release
# see issue #105
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
shell: cmd
run: ./build.cmd ci -release
# upload test results
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test-results-release
# this path glob pattern requires forward slashes!
path: ./src/FSharp.Control.TaskSeq.Test/TestResults/test-results-release.trx
test-debug:
name: Test Debug Build
runs-on: windows-latest
steps:
# checkout the code
- name: checkout-code
uses: actions/checkout@v3
with:
fetch-depth: 0
# setup dotnet based on global.json
- name: setup-dotnet
uses: actions/setup-dotnet@v3
# build it, test it
- name: Run dotnet test - debug
# see issue #105
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
shell: cmd
run: ./build.cmd ci -debug
# upload test results
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test-results-debug
# this path glob pattern requires forward slashes!
path: ./src/FSharp.Control.TaskSeq.Test/TestResults/test-results-debug.trx