Skip to content

Commit a49ea12

Browse files
committed
Only upload merged kover report in CI
1 parent 04e8685 commit a49ea12

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

.github/workflows/tests.yml

+4-24
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, drew/codecov-fix ]
66
pull_request:
77
branches: [ main ]
88

@@ -28,13 +28,6 @@ jobs:
2828
with:
2929
arguments: macosX64Test iosX64Test # tvosX64Test
3030

31-
- name: Archive Reports
32-
uses: actions/upload-artifact@v3
33-
if: ${{ always() }}
34-
with:
35-
name: reports
36-
path: '**/build/reports/*'
37-
3831
- name: Archive Test Results
3932
uses: actions/upload-artifact@v3
4033
if: ${{ always() }}
@@ -56,13 +49,6 @@ jobs:
5649
with:
5750
arguments: mingwX64Test
5851

59-
- name: Archive Reports
60-
uses: actions/upload-artifact@v3
61-
if: ${{ always() }}
62-
with:
63-
name: reports
64-
path: '**/build/reports/*'
65-
6652
- name: Archive Test Results
6753
uses: actions/upload-artifact@v3
6854
if: ${{ always() }}
@@ -101,7 +87,7 @@ jobs:
10187
if: ${{ always() }}
10288
with:
10389
name: reports
104-
path: '**/build/reports/*'
90+
path: "build/reports/kover/report.xml"
10591

10692
- name: Archive Test Results
10793
uses: actions/upload-artifact@v3
@@ -128,13 +114,6 @@ jobs:
128114
with:
129115
arguments: jsNodeTest jsBrowserTest
130116

131-
- name: Archive Reports
132-
uses: actions/upload-artifact@v3
133-
if: ${{ always() }}
134-
with:
135-
name: reports
136-
path: '**/build/reports/*'
137-
138117
- name: Archive Test Results
139118
uses: actions/upload-artifact@v3
140119
if: ${{ always() }}
@@ -151,10 +130,11 @@ jobs:
151130
uses: actions/download-artifact@v3
152131
with:
153132
name: reports
133+
- run: ls -la
154134
- uses: codecov/codecov-action@v3
155135
with:
156136
token: ${{ secrets.CODECOV_TOKEN }}
157-
files: "build/reports/kover/report.xml"
137+
files: "report.xml"
158138

159139
upload-junit-results:
160140
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)