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
option --coverage is ambiguous #94
Comments
@owenvoke any idea? |
Can you share your GitHub actions file? |
name: Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_DB: homestead
POSTGRES_USER: homestead
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
extensions: mbstring, dom, fileinfo, intl, gd, imagick, bcmath, soap, zip, sqlite, pcov
coverage: pcov
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.json') }}
- name: Authenticate Nova
run: composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }}
- name: Install Composer dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist --optimize-autoloader
- name: Prepare the application
run: cp .env.example .env && php artisan key:generate
- name: Clear Config
run: php artisan config:clear && php artisan route:clear
- name: Run Tests
run: ./vendor/bin/pest --coverage --min=100
- name: Codecov
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }} |
If it is of any help. I just tried to upgrade another application from 0.1.0 to 0.2.0 and that is when the issue with the ambiguous flag starts. |
Remove the |
I also started seeing this error today on Bitbucket, with no change in my continuous integration pipeline. Just started getting the PHPUnit error when Pest runs. |
In my setup, I was programmatically using the "latest" version of Composer. Yesterday, Composer 2.7.0 was released, and that caused Temporarily, we got around this by pinning to Composer 2.6.6, and our pipelines are passing again. Ultimately we'll likely just add |
Thanks for sharing @paulshryock, this solved the problem |
When running pest on CI there is an odd error that I run into with the
--coverage
flag.This only happens with a GitHub workflow and I am unable to reproduce this locally. Could the binaries of pest and phpunit somehow end up being linked faulty?
The text was updated successfully, but these errors were encountered: