File tree Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 23
23
uses : shivammathur/cache-extensions@v1
24
24
with :
25
25
php-version : ${{ inputs.php-version }}
26
- extensions : " mongodb-${{ inputs.driver-version }}"
26
+ extensions : " xdebug, mongodb-${{ inputs.driver-version }}"
27
27
key : " extcache-${{ inputs.driver-version }}"
28
28
29
29
- name : Cache extensions
37
37
uses : shivammathur/setup-php@v2
38
38
with :
39
39
coverage : none
40
- extensions : " mongodb-${{ inputs.driver-version }}"
40
+ extensions : " xdebug, mongodb-${{ inputs.driver-version }}"
41
41
php-version : " ${{ inputs.php-version }}"
42
42
tools : cs2pr
43
43
ini-values : " ${{ inputs.php-ini-values }}"
Original file line number Diff line number Diff line change 83
83
php-ini-values : " zend.assertions=1"
84
84
85
85
- name : " Run PHPUnit"
86
- run : " vendor/bin/phpunit"
86
+ run : " vendor/bin/phpunit --configuration phpunit.evergreen.xml "
87
87
env :
88
+ XDEBUG_MODE : " coverage"
88
89
MONGODB_URI : ${{ steps.setup-mongodb.outputs.cluster-uri }}
90
+
91
+ - name : " Upload coverage report"
92
+ uses : codecov/codecov-action@v5
93
+ with :
94
+ disable_search : true
95
+ files : coverage.xml
96
+ flags : " ${{ matrix.mongodb-version }}-${{ matrix.topology }}"
97
+ token : ${{ secrets.CODECOV_TOKEN }}
98
+
99
+ - name : Upload test results to Codecov
100
+ uses : codecov/test-results-action@v1
101
+ with :
102
+ disable_search : true
103
+ files : test-results.xml
104
+ flags : " ${{ matrix.mongodb-version }}-${{ matrix.topology }}"
105
+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 25
25
</testsuite >
26
26
</testsuites >
27
27
28
+ <source >
29
+ <include >
30
+ <directory suffix =" .php" >src</directory >
31
+ </include >
32
+ </source >
33
+
34
+ <coverage >
35
+ <report >
36
+ <clover outputFile =" coverage.xml" />
37
+ </report >
38
+ </coverage >
39
+
28
40
<logging >
29
41
<junit outputFile =" test-results.xml" />
30
42
</logging >
You can’t perform that action at this time.
0 commit comments