Skip to content

Bug: Could not setup phpunit #938

@eylemugurel

Description

@eylemugurel

Describe the bug

PHP stacks 8.2, 8.3, and 8.4 are unable to setup PHPUnit.

Meanwhile PHP 8.1 stack is setting it up correctly.

Version

  • v2
  • v1

Runners

GitHub Hosted

Operating systems

Ubuntu, macOS, Windows

PHP versions

PHP 8.2, 8.3, 8.4

To Reproduce

name: Backend Tests
on: push
jobs:
  test-backend:
    runs-on: ${{matrix.operating-system}}
    strategy:
      fail-fast: false
      matrix:
        operating-system: ['ubuntu-latest', 'macos-latest', 'windows-latest']
        php-version: ['8.1', '8.2', '8.3', '8.4']
    steps:
    - name: Configure Git
      run: git config --global core.autocrlf false
    - name: Checkout Code
      uses: actions/checkout@v4
      with:
        submodules: true
    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: ${{matrix.php-version}}
        tools: phpunit
    - name: Run Tests
      run: phpunit --configuration test/backend/phpunit.xml

Expected behavior

Relevant PHPUnit versions are expected to be set up.

Screenshots/Logs

Image

Additional context

No response

Are you willing to submit a PR?

No

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions