Repository navigation
Define the 1.x contract and public release gates #30
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Compatibility integration | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| workflow_call: | |
| permissions: | |
| contents: read | |
| jobs: | |
| differential: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 20 | |
| env: | |
| RUNTIME_TEST_DB_HOST: '127.0.0.1:3306' | |
| RUNTIME_TEST_DB_USER: root | |
| RUNTIME_TEST_DB_PASSWORD: runtime-ci-fixture | |
| services: | |
| database: | |
| image: mariadb:11.4 | |
| env: | |
| MARIADB_ROOT_PASSWORD: runtime-ci-fixture | |
| MARIADB_ROOT_HOST: '%' | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="healthcheck.sh --connect --innodb_initialized" | |
| --health-interval=5s --health-timeout=5s --health-retries=20 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Set up compatible oracle PHP | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 | |
| with: | |
| php-version: '8.2.33' | |
| extensions: curl, dom, mbstring, mysqli | |
| tools: composer:2.10.3 | |
| coverage: none | |
| - name: Set up candidate PHP | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 | |
| with: | |
| php-version: '8.5.9' | |
| extensions: curl, dom, mbstring, mysqli | |
| tools: composer:2.10.3 | |
| coverage: none | |
| - name: Install candidate dependencies | |
| run: composer install --no-interaction --no-progress --no-plugins --no-scripts | |
| - name: Install VCS and database fixture tools | |
| run: sudo apt-get update -qq && sudo apt-get install -y -qq mercurial subversion mariadb-client | |
| - name: Prepare pinned WordPress and WP-CLI fixtures | |
| run: python3 tools/ci-fixtures.py | |
| - name: Verify executed evidence for every parity row | |
| run: | | |
| php vendor/bin/phpunit --no-progress --fail-on-skipped | |
| php vendor/bin/phpunit --no-logging --list-tests-xml build/test-list.xml | |
| python3 -m unittest discover -s tools/tests | |
| python3 tools/parity-evidence.py | |
| - name: Compare pinned oracles and candidate | |
| run: python3 tools/differential/run.py --oracle-php /usr/bin/php8.2 --candidate-php /usr/bin/php8.5 --composer "$(command -v composer)" | |
| - name: Preserve exact comparison evidence | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: compatibility-evidence | |
| path: | | |
| build/differential/report.json | |
| build/parity-evidence.json | |
| build/phpunit.xml | |
| build/ci-fixtures/manifest.json | |
| if-no-files-found: error |