Skip to content

Run PHPUnit jobs across multiple PHP versions#46510

Merged
anton-vlasenko merged 79 commits intotrunkfrom
fix/parity-with-cores-php-ci-jobs
Jan 16, 2023
Merged

Run PHPUnit jobs across multiple PHP versions#46510
anton-vlasenko merged 79 commits intotrunkfrom
fix/parity-with-cores-php-ci-jobs

Conversation

@anton-vlasenko
Copy link
Copy Markdown
Contributor

@anton-vlasenko anton-vlasenko commented Dec 13, 2022

What?

This PR:

  • Removes PHP related checks from the Unit Tests Github CI job;
  • Adds 2 new Github CI Jobs: PHPUnit Tests and PHP Coding Standards (the same way it's implemented in Core);
  • brings ability to run PHPUnit tests on all PHP versions (5.6 through 8.2) using the CI jobs;
  • shows code style errors on the "Files changed" tab (same as Core);
  • Fixes an issue with wp-env as it used non-optimal PHPUnit versions on PHP 7.3 and 7.4 (props to @jrfnl);

Why?

Gutenberg should support the same PHP versions as Core.

How?

This PR adds 2 new Github CI Jobs: PHPUnit Tests and PHP Coding Standards.
These PHP CI jobs were backported from Core to ensure that we test Gutenberg PRs in the same fashion.

Testing Instructions

  1. Make sure that the CI jobs run without errors.
  2. Observe there are PHP_VERSION (multisite) on ubuntu-latest jobs for each supported PHP version (5.6 through 8.2).

Props @jrfnl , @dmsnell , @anton-vlasenko

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Project Management Meta-issues related to project management of Gutenberg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants