Make WordPress Core


Ignore:
Timestamp:
12/17/2024 04:38:07 PM (6 months ago)
Author:
desrosj
Message:

Build/Test Tools: Regularly run the html-api-html5lib-tests.

In [58010], the external test suite from html5lib was imported to validate the tree-construction steps in the HTML Processor to ensure that they are behaving according to the HTML specification.

The test group was excluded by default because there are a high number of skipped tests. The number of skipped tests has come down, but the group does not need to be run on every job.

This introduces a new job in the PHPUnit workflow for regularly running these tests on their own using the changes in [59251[.

Props desrosj, jonsurrell, jorbin, dmsnell, costdev, chaion07, engahmeds3ed.
Fixes #61209.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/phpunit-tests.yml

    r59490 r59528  
    155155      report: ${{ matrix.report || false }}
    156156
     157  #
     158  # Runs specific individual test groups.
     159  #
     160  specific-test-groups:
     161    name: ${{ matrix.phpunit-test-groups }}
     162    uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests-v3.yml@trunk
     163    permissions:
     164      contents: read
     165    secrets: inherit
     166    if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     167    strategy:
     168      fail-fast: false
     169      matrix:
     170        php: [ '7.2', '7.4', '8.0', '8.4' ]
     171        db-type: [ 'mysql' ]
     172        db-version: [ '8.4' ]
     173        phpunit-test-groups: [ 'html-api-html5lib-tests' ]
     174    with:
     175      php: ${{ matrix.php }}
     176      db-type: ${{ matrix.db-type }}
     177      db-version: ${{ matrix.db-version }}
     178      phpunit-test-groups: ${{ matrix.phpunit-test-groups }}
     179
    157180  slack-notifications:
    158181    name: Slack Notifications
     
    161184      actions: read
    162185      contents: read
    163     needs: [ test-with-mysql, test-with-mariadb ]
     186    needs: [ test-with-mysql, test-with-mariadb, specific-test-groups ]
    164187    if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
    165188    with:
Note: See TracChangeset for help on using the changeset viewer.