|
71 | 71 | php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }} |
72 | 72 | server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }} |
73 | 73 | mysql-versions: ["8.4"] |
74 | | - xdebug_mode: ['coverage'] |
75 | 74 |
|
76 | 75 | name: MySQL ${{ matrix.mysql-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }} |
77 | 76 |
|
@@ -168,18 +167,8 @@ jobs: |
168 | 167 | # Only run if phpunit config file exists |
169 | 168 | if: steps.check_phpunit.outcome == 'success' |
170 | 169 | working-directory: apps/${{ env.APP_NAME }} |
171 | | - env: |
172 | | - XDEBUG_MODE: ${{ matrix.xdebug_mode }} |
173 | 170 | run: composer run test:coverage |
174 | 171 |
|
175 | | - - name: Upload coverage results to Coveralls |
176 | | - working-directory: apps/${{ env.APP_NAME }} |
177 | | - env: |
178 | | - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
179 | | - COVERALLS_PARALLEL: true |
180 | | - COVERALLS_FLAG_NAME: php-${{ matrix.php-versions }} |
181 | | - run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml --json_path=build/logs/coveralls-upload.json -v |
182 | | - |
183 | 172 | - name: Check PHPUnit integration script is defined |
184 | 173 | id: check_integration |
185 | 174 | continue-on-error: true |
@@ -224,6 +213,20 @@ jobs: |
224 | 213 | - name: Summary status |
225 | 214 | run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-mysql.result != 'success' }}; then exit 1; fi |
226 | 215 |
|
| 216 | + upload-coverage: |
| 217 | + needs: phpunit-mysql |
| 218 | + runs-on: ubuntu-latest |
| 219 | + strategy: |
| 220 | + matrix: |
| 221 | + php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }} |
| 222 | + steps: |
| 223 | + - name: Upload coverage results to Coveralls |
| 224 | + working-directory: apps/${{ env.APP_NAME }} |
| 225 | + env: |
| 226 | + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 227 | + COVERALLS_PARALLEL: true |
| 228 | + COVERALLS_FLAG_NAME: php-${{ matrix.php-versions }} |
| 229 | + run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml --json_path=build/logs/coveralls-upload.json -v |
227 | 230 | finish-coverage: |
228 | 231 | needs: phpunit-mysql |
229 | 232 | runs-on: ubuntu-latest |
|
0 commit comments