Skip to content

Commit d4516da

Browse files
committed
Retry creating test report with Dorny
1 parent 89826a4 commit d4516da

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

.github/workflows/test-report.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
1-
name: 'Test Report'
1+
name: ci-report
22

33
# See Dorny instructions for why we need a separate yaml for creating a test report
44
# for public repositories that accept forks:
55
# https://github.com/dorny/test-reporter#recommended-setup-for-public-repositories
66

77
on:
88
workflow_run:
9-
workflows: ['ci-test'] # runs after CI workflow
9+
workflows: ci-test # runs after CI workflow
1010
types:
1111
- completed
1212
jobs:
1313
test-report-release:
14-
runs-on: ubuntu-latest
14+
runs-on: windows-latest
15+
name: Test report (release)
1516
steps:
1617
- uses: dorny/test-reporter@v1
1718
with:
1819
artifact: test-results-release # artifact name
19-
name: Report release tests # Name of the check run which will be created
20-
path: '**/*.trx' # Path to test results (inside artifact .zip)
20+
name: Dorny release tests # Name of the check run which will be created
21+
path: '*.trx' # Path to test results (inside artifact .zip)
2122
reporter: dotnet-trx # Format of test results
2223

2324
test-report-debug:
24-
runs-on: ubuntu-latest
25+
runs-on: windows-latest
26+
name: Test report (debug)
2527
steps:
2628
- uses: dorny/test-reporter@v1
2729
with:
2830
artifact: test-results-debug # artifact name
29-
name: Report debug tests # Name of the check run which will be created
30-
path: '**/*.trx' # Path to test results (inside artifact .zip)
31+
name: Dorny debug tests # Name of the check run which will be created
32+
path: '*.trx' # Path to test results (inside artifact .zip)
3133
reporter: dotnet-trx # Format of test results

.github/workflows/test.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ jobs:
1212
uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0
15+
1516
# setup dotnet based on global.json
1617
- name: setup-dotnet
1718
uses: actions/setup-dotnet@v3
19+
1820
# build it, test it
1921
- name: Run dotnet test - release
2022
run: ./build.cmd ci -release
21-
- uses: actions/upload-artifact@v2 # upload test results
22-
if: success() || failure() # run this step even if previous step failed
23+
24+
# upload test results
25+
- uses: actions/upload-artifact@v2
26+
if: success() || failure()
2327
with:
2428
name: test-results-release
2529
# this path glob pattern requires forward slashes!
@@ -35,14 +39,18 @@ jobs:
3539
uses: actions/checkout@v3
3640
with:
3741
fetch-depth: 0
42+
3843
# setup dotnet based on global.json
3944
- name: setup-dotnet
4045
uses: actions/setup-dotnet@v3
46+
4147
# build it, test it
4248
- name: Run dotnet test - debug
4349
run: ./build.cmd ci -debug
44-
- uses: actions/upload-artifact@v2 # upload test results
45-
if: success() || failure() # run this step even if previous step failed
50+
51+
# upload test results
52+
- uses: actions/upload-artifact@v2
53+
if: success() || failure()
4654
with:
4755
name: test-results-debug
4856
# this path glob pattern requires forward slashes!

0 commit comments

Comments
 (0)