Skip to content

Commit

Permalink
coverage with xdebug + PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Surfoo committed Jul 15, 2023
1 parent 906b21b commit ad642cb
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ '8.0', '8.1', '8.2' ]
php-version: [ '8.0', '8.1', '8.2', '8.3' ]
steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
Expand Down Expand Up @@ -47,42 +47,25 @@ jobs:
- name: "Check coding standards"
run: "./vendor/bin/phpcs src --standard=psr2 -sp --colors"

coverage:
name: "Coverage"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
with:
php-version: "latest"
coverage: "pcov"
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
tools: "composer"
- name: "Prepare for tests"
run: "mkdir -p build/logs"
- uses: "ramsey/composer-install@v2"
- name: "Run unit tests"
run: "./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml --coverage-text"
- name: "Publish coverage report to Codecov"
uses: "codecov/codecov-action@v2"

unit-tests:
name: "Unit Tests"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
php-version: [ '8.0', '8.1', '8.2' ]
php-version: [ '8.0', '8.1', '8.2', '8.3' ]
steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "none"
coverage: "xdebug"
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
tools: "composer"
- name: "Prepare for tests"
run: "mkdir -p build/logs"
- uses: "ramsey/composer-install@v2"
- name: "Run unit tests"
run: "./vendor/bin/phpunit --colors=always"
run: "./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml --coverage-text"
- name: "Publish coverage report to Codecov"
uses: "codecov/codecov-action@v2"

0 comments on commit ad642cb

Please sign in to comment.