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
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
matrix:
operating-system: [ubuntu-latest, macos-latest, windows-latest]
php-versions: ["8.2", "8.3", "8.4", "8.5"]
include:
- operating-system: ubuntu-latest
php-versions: "8.2"
coverage: pcov

steps:
- name: Checkout
Expand All @@ -25,7 +29,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov
coverage: ${{ matrix.coverage || 'none' }}

- name: Get composer cache directory
id: composer-cache
Expand Down Expand Up @@ -55,15 +59,15 @@ jobs:
run: composer rector

- name: Run tests with coverage
if: matrix.php-versions == '8.2' && matrix.operating-system == 'ubuntu-latest'
if: matrix.coverage
run: composer test -- --coverage-clover coverage.xml

- name: Run tests
if: matrix.php-versions != '8.2' || matrix.operating-system != 'ubuntu-latest'
if: "!matrix.coverage"
run: composer test

- name: Upload coverage to Codecov
if: matrix.php-versions == '8.2' && matrix.operating-system == 'ubuntu-latest'
if: matrix.coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
Loading