Skip to content

Commit c75f928

Browse files
committed
Upload GHA test reports to codecov.io
1 parent 1606d11 commit c75f928

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
@@ -75,8 +75,17 @@ jobs:
7575
run: make test
7676
env:
7777
TEST_PHP_ARGS: "-q -x --show-diff -g FAIL,XFAIL,BORK,WARN,LEAK,SKIP"
78+
TEST_PHP_JUNIT: "test-results.xml"
7879
MONGODB_URI: ${{ steps.setup-mongodb.outputs.cluster-uri }}
7980

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

0 commit comments

Comments
 (0)