• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / PHPUnit-Polyfills / 9923010789
96%
3.x: 98%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: 3.x
Ran 13 Jul 2024 09:33PM UTC
Jobs 31
Files 41
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Jul 2024 09:33PM UTC coverage: 96.408%. Remained the same
9923010789

Pull #175

github

jrfnl
CI/QA: add PHPStan

PHPStan is a good addition to the QA toolkit and with improvements PHPStan has made over the years is now a viable tool for us to use (previously it would give way too many false positives).

This commit:
* Adds a separate job to the `cs` workflow in GH Actions.
    Notes:
    - I've chosen **not** to add PHPStan to the Composer dependencies for two reasons:
        1. It doesn't allow for installation on PHP < 7.2, which would break/block the `composer install` for the test runs.
        2. It would potentially add dependencies which could conflict/cause problems for our test runs due to those defining token constants too.
            _Note: this does not seem to be a problem with the latest versions anymore as the Composer package ships a PHAR file under the hood._
    - We could potentially use [Phive](https://phar.io/) to still have a setup which can be used locally, but just running locally from a PHPStan PHAR file should work just fine.
    - For CI, PHPStan will be installed as a PHAR file by `setup-php` now.
        This does carry a risk _if_ PHPStan would make breaking changes or if a new release adds rules for the levels being scanned as, in that case, builds could unexpectedly start failing.
        The version `setup-php` installs could be hard-coded to the current release `1.11.7`, but that adds an additional maintenance burden of having to keep updating the version as PHPStan releases pretty often.
        So, for now, I've elected to run the risk of random failures. If and when those start happening, we can re-evaluate.
    - The PHP version for the CI run is set to PHP 7.4 to prevent PHPStan throwing some errors/notices related to the outdated PHPUnit version(s) being used.
* Adds a configuration file for PHPStan.
    Notes:
    - The codebase is "clean", so setting scan level to 9 (highest possible).
    - Two files need to be excluded as they contain (non-)issues which PHPStan cannot work around and which prevent... (continued)
Pull Request #175: CI/QA: add PHPStan

671 of 696 relevant lines covered (96.41%)

96.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-7.1-phpunit-auto - 9923010789.1 13 Jul 2024 09:33PM UTC 41
43.52
GitHub Action Run
2 php-7.4-phpunit-auto - 9923010789.2 13 Jul 2024 09:34PM UTC 41
9.64
GitHub Action Run
3 php-8.0-phpunit-9.3.0 - 9923010789.3 13 Jul 2024 09:34PM UTC 41
30.54
GitHub Action Run
4 php-7.3-phpunit-7.2.7 - 9923010789.4 13 Jul 2024 09:34PM UTC 41
61.44
GitHub Action Run
5 php-7.0-phpunit-auto - 9923010789.5 13 Jul 2024 09:34PM UTC 41
61.0
GitHub Action Run
6 php-7.2-phpunit-6.3.1 - 9923010789.6 13 Jul 2024 09:34PM UTC 41
61.88
GitHub Action Run
7 php-5.6-phpunit-phar-4 - 9923010789.7 13 Jul 2024 09:34PM UTC 41
68.83
GitHub Action Run
8 php-8.3-phpunit-9.3.0 - 9923010789.8 13 Jul 2024 09:34PM UTC 41
30.36
GitHub Action Run
9 php-5.6-phpunit-auto - 9923010789.9 13 Jul 2024 09:34PM UTC 41
51.39
GitHub Action Run
10 php-7.3-phpunit-auto - 9923010789.10 13 Jul 2024 09:33PM UTC 41
9.64
GitHub Action Run
11 php-7.3-phpunit-phar-7 - 9923010789.11 13 Jul 2024 09:34PM UTC 41
44.09
GitHub Action Run
12 php-7.4-phpunit-9.6.10 - 9923010789.12 13 Jul 2024 09:34PM UTC 41
18.75
GitHub Action Run
13 php-7.0-phpunit-5.7.27 - 9923010789.13 13 Jul 2024 09:34PM UTC 41
61.44
GitHub Action Run
14 php-7.2-phpunit-phar-6 - 9923010789.14 13 Jul 2024 09:34PM UTC 41
61.29
GitHub Action Run
15 php-5.6-phpunit-5.7.21 - 9923010789.15 13 Jul 2024 09:34PM UTC 41
51.39
GitHub Action Run
16 php-7.2-phpunit-phar-8.0 - 9923010789.16 13 Jul 2024 09:33PM UTC 41
43.8
GitHub Action Run
17 php-8.1-phpunit-auto - 9923010789.17 13 Jul 2024 09:34PM UTC 41
8.57
GitHub Action Run
18 php-8.2-phpunit-auto - 9923010789.18 13 Jul 2024 09:33PM UTC 41
8.57
GitHub Action Run
19 php-8.3-phpunit-phar-9 - 9923010789.19 13 Jul 2024 09:34PM UTC 41
8.57
GitHub Action Run
20 php-7.2-phpunit-auto - 9923010789.20 13 Jul 2024 09:34PM UTC 41
34.58
GitHub Action Run
21 php-8.3-phpunit-auto - 9923010789.21 13 Jul 2024 09:33PM UTC 41
8.57
GitHub Action Run
22 php-8.0-phpunit-auto - 9923010789.22 13 Jul 2024 09:34PM UTC 41
8.57
GitHub Action Run
23 php-8.2-phpunit-9.3.0 - 9923010789.23 13 Jul 2024 09:33PM UTC 41
30.36
GitHub Action Run
24 php-7.4-phpunit-8.1.6 - 9923010789.24 13 Jul 2024 09:34PM UTC 41
43.95
GitHub Action Run
25 php-5.5-phpunit-auto - 9923010789.25 13 Jul 2024 09:34PM UTC 41
68.83
GitHub Action Run
26 php-7.4-phpunit-phar-8 - 9923010789.26 13 Jul 2024 09:34PM UTC 41
35.01
GitHub Action Run
27 php-7.3-phpunit-phar-9.0 - 9923010789.27 13 Jul 2024 09:34PM UTC 41
34.15
GitHub Action Run
28 php-5.4-phpunit-auto - 9923010789.28 13 Jul 2024 09:34PM UTC 41
68.83
GitHub Action Run
29 php-8.1-phpunit-9.3.0 - 9923010789.29 13 Jul 2024 09:33PM UTC 41
30.54
GitHub Action Run
30 php-7.1-phpunit-5.7.21 - 9923010789.30 13 Jul 2024 09:33PM UTC 41
61.44
GitHub Action Run
31 php-7.1-phpunit-phar-5 - 9923010789.31 13 Jul 2024 09:34PM UTC 41
61.44
GitHub Action Run
Source Files on build 9923010789
  • Tree
  • List 41
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9923010789
  • Pull Request #175
  • PR Base - 1.x (#9922984320)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc