|
51 | 51 | tests-domain: [ 'example.org' ] |
52 | 52 | multisite: [ false, true ] |
53 | 53 | memcached: [ false ] |
54 | | - group: [ '' ] |
55 | 54 |
|
56 | 55 | include: |
57 | | - # Include a job for running the html5-lib tests. |
58 | | - - os: ubuntu-latest |
59 | | - php: '7.4' |
60 | | - db-type: 'mysql' |
61 | | - db-version: '8.0' |
62 | | - tests-domain: 'example.org' |
63 | | - multisite: false |
64 | | - memcached: false |
65 | | - group: 'html-api-html5lib-teests' |
66 | 56 | # Include jobs for PHP 7.4 with memcached. |
67 | 57 | - os: ubuntu-latest |
68 | 58 | php: '7.4' |
|
109 | 99 | multisite: ${{ matrix.multisite }} |
110 | 100 | memcached: ${{ matrix.memcached }} |
111 | 101 | phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }} |
112 | | - phpunit-test-groups: ${{ matrix.group }} |
113 | 102 | tests-domain: ${{ matrix.tests-domain }} |
114 | 103 | report: ${{ matrix.report || false }} |
115 | 104 |
|
@@ -157,13 +146,45 @@ jobs: |
157 | 146 | phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }} |
158 | 147 | report: ${{ matrix.report || false }} |
159 | 148 |
|
| 149 | + # |
| 150 | + # Runs specific test groups. |
| 151 | + # |
| 152 | + specific-test-groups: |
| 153 | + name: PHP ${{ matrix.php }} |
| 154 | + uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests-v3.yml@trunk |
| 155 | + permissions: |
| 156 | + contents: read |
| 157 | + secrets: inherit |
| 158 | + if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} |
| 159 | + strategy: |
| 160 | + fail-fast: false |
| 161 | + matrix: |
| 162 | + os: [ ubuntu-latest ] |
| 163 | + php: [ '8.3' ] |
| 164 | + db-type: [ 'mysql' ] |
| 165 | + db-version: [ '8.0' ] |
| 166 | + multisite: [ false ] |
| 167 | + memcached: [ false ] |
| 168 | + phpunit-test-groups: [ 'html-api-html5lib-tests' ] |
| 169 | + |
| 170 | + with: |
| 171 | + os: ${{ matrix.os }} |
| 172 | + php: ${{ matrix.php }} |
| 173 | + db-type: ${{ matrix.db-type }} |
| 174 | + db-version: ${{ matrix.db-version }} |
| 175 | + multisite: ${{ matrix.multisite }} |
| 176 | + memcached: ${{ matrix.memcached }} |
| 177 | + phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }} |
| 178 | + phpunit-test-groups: ${{ matrix.phpunit-test-groups }} |
| 179 | + report: ${{ matrix.report || false }} |
| 180 | + |
160 | 181 | slack-notifications: |
161 | 182 | name: Slack Notifications |
162 | 183 | uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk |
163 | 184 | permissions: |
164 | 185 | actions: read |
165 | 186 | contents: read |
166 | | - needs: [ test-with-mysql, test-with-mariadb ] |
| 187 | + needs: [ test-with-mysql, test-with-mariadb, specific-test-groups ] |
167 | 188 | if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} |
168 | 189 | with: |
169 | 190 | calling_status: ${{ contains( needs.*.result, 'cancelled' ) && 'cancelled' || contains( needs.*.result, 'failure' ) && 'failure' || 'success' }} |
|
0 commit comments