Make WordPress Core

Changeset 49903


Ignore:
Timestamp:
12/23/2020 06:17:51 PM (4 years ago)
Author:
jorbin
Message:

Build/Test: Send Code Coverage reports to Codecov.

Help visualize and explore code coverage reports to avoid blunders.

Props desrosj, swissspidy.
Fixes #52141.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/test-coverage.yml

    r49834 r49903  
    125125
    126126      - name: Run tests as a single site
    127         run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --coverage-html wp-code-coverage-single-${{ github.sha }}
     127        run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --coverage-html wp-code-coverage-single-${{ github.sha }} --coverage-clover wp-code-coverage-single-clover-${{ github.sha }}.xml
    128128
    129129      - name: Create ZIP artifact of single site results
     
    140140          if-no-files-found: error
    141141
     142      - name: Upload single site report  to codecov
     143        uses: codecov/codecov-action@v1
     144        with:
     145          file: wp-code-coverage-single-clover-${{ github.sha }}.xml
     146          flags: single,php
     147
    142148      - name: Run tests as a multisite install
    143         run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --coverage-html wp-code-coverage-multisite-${{ github.sha }}
     149        run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --coverage-html wp-code-coverage-multisite-${{ github.sha }} --coverage-clover wp-code-coverage-multisite-clover-${{ github.sha }}.xml
    144150
    145151      - name: Create ZIP artifact of multisite results
     
    155161          path: wp-code-coverage-multisite-${{ github.sha }}.zip
    156162          if-no-files-found: error
     163
     164      - name: Upload multisite report to codecov
     165        uses: codecov/codecov-action@v1
     166        with:
     167          file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml
     168          flags: multisite,php
Note: See TracChangeset for help on using the changeset viewer.