We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 240d91c commit 3687340Copy full SHA for 3687340
.github/workflows/testing.yml
@@ -96,6 +96,9 @@ jobs:
96
strategy:
97
matrix:
98
php: [ '8.2' ]
99
+ include:
100
+ - php: '8.3'
101
+ coverage: true
102
runs-on: ubuntu-latest
103
104
steps:
@@ -133,4 +136,17 @@ jobs:
133
136
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
134
137
135
138
- name: Run PHPUnit
- run: composer phpunit
139
+ run: |
140
+ if [[ ${{ matrix.coverage == true }} == true ]]; then
141
+ composer phpunit -- --coverage-clover build/logs/unit-coverage.xml
142
+ else
143
+ composer phpunit
144
+ fi
145
+
146
+ - name: Upload code coverage report
147
+ if: ${{ matrix.coverage }}
148
+ uses: codecov/codecov-action@v5.4.0
149
+ with:
150
+ directory: build/logs
151
+ flags: unit
152
+ token: ${{ secrets.CODECOV_TOKEN }}
0 commit comments