Changeset 49931 for trunk/.github/workflows/test-coverage.yml
- Timestamp:
- 01/04/2021 07:46:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/test-coverage.yml
r49903 r49931 2 2 3 3 on: 4 # Once weekly On Sundaysat 00:00 UTC.4 # Once daily at 00:00 UTC. 5 5 schedule: 6 - cron: '0 0 * * 0'6 - cron: '0 0 * * *' 7 7 8 8 env: … … 35 35 # - Logs debug information about what's installed within the WordPress Docker containers. 36 36 # - Install WordPress within the Docker container. 37 # - Run the PHPUnit tests. 38 # - Creates a ZIP file of the code coverage report. 39 # - Uploads ZIP file as an artifact. 37 # - Run the PHPUnit tests as a single site. 38 # - Upload the single site code coverage report to Codecov.io. 40 39 # - Run the PHPUnit tests as a multisite. 41 # - Creates a ZIP file of the code coverage report. 42 # - Uploads ZIP file as an artifact. 40 # - Upload the multisite code coverage report to Codecov.io. 43 41 test-coverage-report: 44 42 name: Generate a code coverage report … … 125 123 126 124 - 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 }} --coverage-clover wp-code-coverage-single-clover-${{ github.sha }}.xml125 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --coverage-clover wp-code-coverage-single-clover-${{ github.sha }}.xml 128 126 129 - name: Create ZIP artifact of single site results 130 uses: thedoctor0/zip-release@0.4.1 131 with: 132 filename: wp-code-coverage-single-${{ github.sha }}.zip 133 path: wp-code-coverage-single-${{ github.sha }} 134 135 - name: Upload single site coverage report 136 uses: actions/upload-artifact@v2 137 with: 138 name: wp-code-coverage-single-${{ github.sha }} 139 path: wp-code-coverage-single-${{ github.sha }}.zip 140 if-no-files-found: error 141 142 - name: Upload single site report to codecov 127 - name: Upload single site report to Codecov 143 128 uses: codecov/codecov-action@v1 144 129 with: … … 147 132 148 133 - name: Run tests as a multisite install 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 }}.xml134 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --coverage-clover wp-code-coverage-multisite-clover-${{ github.sha }}.xml 150 135 151 - name: Create ZIP artifact of multisite results 152 uses: thedoctor0/zip-release@0.4.1 153 with: 154 filename: wp-code-coverage-multisite-${{ github.sha }}.zip 155 path: wp-code-coverage-multisite-${{ github.sha }} 156 157 - name: Upload multisite coverage report 158 uses: actions/upload-artifact@v2 159 with: 160 name: wp-code-coverage-multisite-${{ github.sha }} 161 path: wp-code-coverage-multisite-${{ github.sha }}.zip 162 if-no-files-found: error 163 164 - name: Upload multisite report to codecov 136 - name: Upload multisite report to Codecov 165 137 uses: codecov/codecov-action@v1 166 138 with:
Note: See TracChangeset
for help on using the changeset viewer.