Skip to content

setup-php for php8.0 installs phpunit 10.0 #694

@mwinkens

Description

@mwinkens

Describe the bug

PHPUnit 10.0.0 by Sebastian Bergmann and contributors.

This version of PHPUnit requires PHP >= 8.1.
You are using PHP 8.0.27 (/usr/bin/php8.0).
Error: Process completed with exit code 1.

GitHub Actions job part

      - name: Install PHP ${{ matrix.php-version }}
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-version }}
          ini-file: myapp/php.ini
          tools: phpunit, phpcs, phpcbf

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

PHP versions

8.0

To Reproduce

Expected behavior

Not installing incompatible versions

Screenshots/Logs

Additional context

Are you willing to submit a PR?

Workaround:

specify the phpunit version as described in the Tools Support:

      - name: Install PHP ${{ matrix.php-version }}
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-version }}
          ini-file: myapp/php.ini
          tools: phpunit:9.5, phpcs, phpcbf

Metadata

Metadata

Assignees

Labels

workflow-editIssue can be fixed by editing the GitHub Action workflow

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions