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

Remove uploading coverage.xml to Codecov #396

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 2 additions & 26 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
test:
name: Test & Upload coverage.xml to Codecov
name: Test
runs-on: ubuntu-24.04

services:
Expand All @@ -30,12 +30,6 @@ jobs:
with:
php-version: 8.3

- name: Install PHP extensions
run: sudo apt-get install -y php-phpdbg

- name: Check phpdbg version
run: phpdbg -V

- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.ci', '.env');"

Expand All @@ -55,22 +49,4 @@ jobs:
run: php artisan migrate

- name: Run tests via PHPUnit
env:
XDEBUG_MODE: coverage
run: |
vendor/bin/phpunit --coverage-clover=coverage.xml
cat ./coverage.xml

- name: Show coverage.xml
run: cat ./coverage.xml

- name: Upload coverage.xml to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
verbose: true
env_vars: PHP
run: vendor/bin/phpunit