Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: This should not happen, on github actions #1358

Open
HichemTab-tech opened this issue Feb 26, 2025 · 0 comments
Open

[Bug]: This should not happen, on github actions #1358

HichemTab-tech opened this issue Feb 26, 2025 · 0 comments
Labels

Comments

@HichemTab-tech
Copy link

What Happened

I got Pest\Exceptions\ShouldNotHappen , when trying to execute vendor/bin/pest --ci --coverage --coverage-clover=coverage.xml on github actions.

Image

How to Reproduce

In GitHub actions use :
```
steps:
- name: Checkout code
uses: actions/checkout@v4

  - name: Setup PHP
    uses: shivammathur/setup-php@v2
    with:
      php-version: ${{ matrix.php }}
      extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
      coverage: pcov

  - name: Setup problem matchers
    run: |
      echo "::add-matcher::${{ runner.tool_cache }}/php.json"
      echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

  - name: Clean vendor directory
    run: rm -rf vendor

  - name: Install dependencies
    run: |
      composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
      composer update --${{ matrix.stability }} --prefer-dist --no-interaction

  - name: List Installed Dependencies
    run: composer show -D

  - name: Execute tests
    run: vendor/bin/pest --ci --coverage --coverage-clover=coverage.xml

### Sample Repository

_No response_

### Pest Version

3.7.4

### PHP Version

8.3.17

### Operation System

Linux

### Notes

_No response_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant