Skip to content
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
22 changes: 11 additions & 11 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php:
- '8.3'
php-version: [8.3]
env:
PHP_VERSION: '${{ matrix.php }}'
PHP_VERSION: '${{ matrix.php-version }}'

steps:
- name: 'Checkout current revision'
Expand All @@ -43,7 +42,7 @@ jobs:
- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php }}'
php-version: '${{ matrix.php-version }}'
tools: 'composer'
extensions: 'mbstring, intl'
coverage: 'pcov'
Expand All @@ -57,25 +56,26 @@ jobs:
uses: 'actions/cache@v4'
with:
path: '${{ steps.cachedir.outputs.path }}'
key: "composer-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}"
key: "composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}"
restore-keys: |
composer-${{ matrix.php }}-
composer-${{ matrix.php-version }}-
composer-

- name: 'Install dependencies with Composer'
run: 'composer install --prefer-dist --no-interaction'

- name: 'Run PHPUnit with coverage'
run: 'vendor/bin/phpunit --coverage-clover=clover.xml'
run: 'vendor/bin/phpunit --coverage-clover=${{ matrix.php-version }}-${{ strategy.job-index }}-clover.xml'

- name: 'Export coverage results'
uses: 'codecov/codecov-action@v4'
uses: 'codecov/codecov-action@v5'
with:
file: './clover.xml'
token: ${{ secrets.CODECOV_TOKEN }} # required
files: './${{ matrix.php-version }}-${{ strategy.job-index }}-clover.xml'
env_vars: PHP_VERSION,DB_VENDOR

- name: 'Archive code coverage results'
uses: 'actions/upload-artifact@v4'
with:
name: 'PHP ${{ matrix.php }}'
path: 'clover.xml'
name: 'PHP-${{ matrix.php-version }}-strategy-job-index-${{ strategy.job-index }}'
path: '${{ matrix.php-version }}-${{ strategy.job-index }}-clover.xml'
Loading