91
91
if : ${{ hashFiles('wp-content') != '' }} # TODO: This may be incorrect since it's a directory.
92
92
run : sudo chmod -R a+w wp-content
93
93
94
- # On main , there will be a previous coverage report. On PRs we create a new directory using the commit SHA.
94
+ # On trunk , there will be a previous coverage report. On PRs we create a new directory using the commit SHA.
95
95
- name : Clear previous code coverage
96
- if : ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/main ') }}
96
+ if : ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/trunk ') }}
97
97
run : |
98
98
rm -rf gh-pages/phpunit || true;
99
99
mkdir gh-pages/phpunit || true;
@@ -114,7 +114,7 @@ jobs:
114
114
115
115
# On main, we want it output to a different path
116
116
- name : Merge code coverage for main
117
- if : ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/main ') }}
117
+ if : ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/trunk ') }}
118
118
run : |
119
119
vendor/bin/phpcov merge --clover clover.xml tests/_output/;
120
120
vendor/bin/phpcov merge --clover gh-pages/phpunit/clover.xml --php gh-pages/phpunit/phpunit.cov --html gh-pages/phpunit/html/ tests/_output/;
@@ -139,7 +139,7 @@ jobs:
139
139
git add -- .nojekyll *
140
140
141
141
- name : Update README coverage badge
142
- if : ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/main ') }} # only commit on main , on the PHP version we're using in production.
142
+ if : ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/trunk ') }} # only commit on trunk , on the PHP version we're using in production.
143
143
run : php-coverage-badger clover.xml gh-pages/phpunit/coverage.svg
144
144
145
145
- name : Generate PR coverage badge
0 commit comments