Skip to content

Commit

Permalink
Try again to fix action.
Browse files Browse the repository at this point in the history
  • Loading branch information
madpilot78 committed Jul 2, 2024
1 parent 7d8728e commit d9fa8f8
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,18 @@ jobs:
php: [8.4, 8.3]
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install composer and dependencies
uses: php-actions/composer@v6

- name: PHPUnit Tests
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php_version: ${{ matrix.php }}
php_extensions: xdebug
bootstrap: vendor/autoload.php
configuration: phpunit.xml
args: tests --coverage-clover ./coverage.xml

php-version: ${{ matrix.php }}
extensions: curl
coverage: clover
- name: Install dependencies
run: composer self-update && composer install && composer dump-autoload
- name: Run tests and collect coverage
run: vendor/bin/phpunit --coverage-clover coverage.xml .
- name: Upload to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODE_COV_TOKEN }}
files: ./coverage.xml
verbose: true

0 comments on commit d9fa8f8

Please sign in to comment.