Changeset 60534 for trunk/.github/workflows/phpunit-tests.yml
- Timestamp:
- 08/01/2025 12:42:18 PM (7 months ago)
- File:
-
- 1 edited
-
trunk/.github/workflows/phpunit-tests.yml (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/phpunit-tests.yml
r60532 r60534 64 64 contents: read 65 65 secrets: inherit 66 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') }}66 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }} 67 67 strategy: 68 68 fail-fast: false … … 141 141 contents: read 142 142 secrets: inherit 143 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') }}143 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }} 144 144 strategy: 145 145 fail-fast: false … … 193 193 contents: read 194 194 secrets: inherit 195 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') }}195 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }} 196 196 strategy: 197 197 fail-fast: false … … 233 233 contents: read 234 234 secrets: inherit 235 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') }}235 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }} 236 236 strategy: 237 237 fail-fast: false … … 247 247 phpunit-test-groups: ${{ matrix.phpunit-test-groups }} 248 248 249 # 250 # Runs unit tests for forks. 251 # 252 # Because the majority of forks will belong to personal GitHub accounts (which are limited to just 20 concurrent jobs 253 # at any given time), forks only run a small subset of test combinations. This allows contributors to open pull 254 # requests back to their own forks for testing purposes without having to wait hours for workflow to complete. 255 # 256 limited-matrix-for-forks: 257 name: PHP ${{ matrix.php }} 258 uses: ./.github/workflows/reusable-phpunit-tests-v3.yml 259 permissions: 260 contents: read 261 secrets: inherit 262 if: ${{ ! startsWith( github.repository, 'WordPress/' ) && github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }} 263 strategy: 264 fail-fast: false 265 matrix: 266 php: [ '7.2', '8.4' ] 267 db-version: [ '8.4', '11.8' ] 268 db-type: [ 'mysql', 'mariadb' ] 269 multisite: [ false ] 270 271 include: 272 # Include one multisite job for each database type. 273 - php: '8.4' 274 db-version: '8.4' 275 db-type: 'mysql' 276 multisite: true 277 - php: '8.4' 278 db-version: '11.8' 279 db-type: 'mariadb' 280 multisite: true 281 # Test with memcached. 282 - php: '8.4' 283 db-version: '8.4' 284 db-type: 'mysql' 285 multisite: true 286 memcached: true 287 # Run specific test groups once. 288 - php: '8.4' 289 db-version: '8.4' 290 db-type: 'mysql' 291 phpunit-test-groups: 'html-api-html5lib-tests' 292 293 exclude: 294 # Exclude PHP versions that are not supported by the database versions. 295 - db-type: 'mysql' 296 db-version: '11.8' 297 - db-type: 'mariadb' 298 db-version: '8.4' 299 300 with: 301 php: ${{ matrix.php }} 302 db-version: ${{ matrix.db-version }} 303 db-type: ${{ matrix.db-type }} 304 memcached: ${{ matrix.memcached || false }} 305 phpunit-test-groups: ${{ matrix.phpunit-test-groups || '' }} 306 249 307 slack-notifications: 250 308 name: Slack Notifications … … 253 311 actions: read 254 312 contents: read 255 needs: [ test-with-mysql, test-with-mariadb, test-innovation-releases, specific-test-groups ]313 needs: [ test-with-mysql, test-with-mariadb, test-innovation-releases, specific-test-groups, limited-matrix-for-forks ] 256 314 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 257 315 with:
Note: See TracChangeset
for help on using the changeset viewer.