Skip to content

Commit a94d328

Browse files
committed
Upload GHA test reports to codecov.io
1 parent 90e70f0 commit a94d328

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,17 @@ jobs:
7474
run: make test
7575
env:
7676
TEST_PHP_ARGS: "-q -x --show-diff -g FAIL,XFAIL,BORK,WARN,LEAK,SKIP"
77+
TEST_PHP_JUNIT: "test-results.xml"
7778
MONGODB_URI: ${{ steps.setup-mongodb.outputs.cluster-uri }}
7879

80+
- name: Upload test results to Codecov
81+
uses: codecov/test-results-action@v1
82+
with:
83+
disable_search: true
84+
files: test-results.xml
85+
flags: "${{ matrix.mongodb-version }}-${{ matrix.topology }}"
86+
token: ${{ secrets.CODECOV_TOKEN }}
87+
7988
pecl-test:
8089
name: "Test PECL package"
8190
runs-on: "ubuntu-latest"
@@ -180,4 +189,13 @@ jobs:
180189
run: make test
181190
env:
182191
TEST_PHP_ARGS: "-q -x --show-diff -g FAIL,XFAIL,BORK,WARN,LEAK,SKIP"
192+
TEST_PHP_JUNIT: "test-results.xml"
183193
MONGODB_URI: ${{ steps.setup-mongodb.outputs.cluster-uri }}
194+
195+
- name: Upload test results to Codecov
196+
uses: codecov/test-results-action@v1
197+
with:
198+
disable_search: true
199+
files: test-results.xml
200+
flags: "${{ ENV.SERVER_VERSION }}-server"
201+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)