Skip to content

Commit

Permalink
Recude CI matrix complexity; fix & upgrade Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 authored Nov 20, 2024
1 parent 6b7ffa5 commit e055dcf
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,13 @@ jobs:
php-version:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
deps:
- "lowest"
- "latest"
coverage:
- "false"
include:
- php-version: "8.3"
- php-version: "8.1"
deps: "lowest"
coverage: "false"
- php-version: "8.3"
deps: "latest"
coverage: "true"

steps:
- name: "Checkout"
Expand Down Expand Up @@ -138,16 +133,12 @@ jobs:
run: "composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-lowest"
if: "${{ matrix.deps == 'lowest' }}"

- name: "Run PHPUnit"
run: "vendor/bin/phpunit -c phpunit.xml.dist"
if: "${{ matrix.coverage != 'true' }}"

- name: "Run PHPUnit with coverage"
run: "vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage-report.xml"
if: "${{ matrix.coverage == 'true' }}"

- name: Upload code coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
files: coverage-report.xml
if: "${{ matrix.coverage == 'true' }}"
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

0 comments on commit e055dcf

Please sign in to comment.