-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[11.x] Add Coveralls CI workflow for test coverage reporting #53648
Changes from all commits
e4a15c4
5e40c28
a5fbece
5a6cfdf
67d3ed3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: coveralls | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- '*.x' | ||
pull_request: | ||
|
||
jobs: | ||
types: | ||
runs-on: ubuntu-24.04 | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [ 8.2, 8.3, 8.4 ] | ||
phpunit: [ '10.5.12', '11.3.2' ] | ||
|
||
name: PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
extensions: mbstring, xml, xdebug | ||
tools: composer:v2 | ||
coverage: xdebug | ||
|
||
- name: Set Framework version | ||
run: composer config version "11.x-dev" | ||
|
||
- name: Set Minimum PHP 8.4 Versions | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer require nesbot/carbon:^3.4 --no-interaction --no-update | ||
shell: bash | ||
if: matrix.php >= 8.4 | ||
|
||
- name: Set PHPUnit | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer require phpunit/phpunit:^${{ matrix.phpunit }} --dev --no-interaction --no-update | ||
|
||
- name: Install dependencies | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress | ||
|
||
- name: Execute tests with coverage | ||
run: vendor/bin/phpunit --configuration="phpunit.xml.dist" --coverage-clover="build/logs/clover.xml" | ||
|
||
- name: Store coverage results to Coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
composer global require php-coveralls/php-coveralls --prefer-stable --prefer-dist --no-interaction --no-progress | ||
php-coveralls --coverage_clover="build/logs/clover.xml" -v |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -31,9 +31,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -77,9 +77,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -35,9 +35,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -82,9 +82,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -128,9 +128,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -175,9 +175,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -224,9 +224,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -271,9 +271,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlsrv, pdo, pdo_sqlsrv, odbc, pdo_odbc, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlsrv, pdo, pdo_sqlsrv, odbc, pdo_odbc, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -319,9 +319,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlsrv, pdo, pdo_sqlsrv, odbc, pdo_odbc, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlsrv, pdo, pdo_sqlsrv, odbc, pdo_odbc, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -358,9 +358,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.3 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlsrv, pdo, pdo_sqlsrv, odbc, pdo_odbc, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlsrv, pdo, pdo_sqlsrv, odbc, pdo_odbc, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -24,9 +24,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.2 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -59,9 +59,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.2 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -107,9 +107,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.2 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
@@ -147,9 +147,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: 8.2 | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -53,10 +53,10 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: ${{ matrix.php }} | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, igbinary, msgpack, memcached, gmp, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, igbinary, msgpack, memcached, gmp, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
ini-values: error_reporting=E_ALL | ||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
env: | ||||||
REDIS_CONFIGURE_OPTS: --enable-redis --enable-redis-igbinary --enable-redis-msgpack --enable-redis-lzf --with-liblzf --enable-redis-zstd --with-libzstd --enable-redis-lz4 --with-liblz4 | ||||||
REDIS_LIBS: liblz4-dev, liblzf-dev, libzstd-dev | ||||||
|
@@ -133,9 +133,9 @@ jobs: | |||||
uses: shivammathur/setup-php@v2 | ||||||
with: | ||||||
php-version: ${{ matrix.php }} | ||||||
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, pdo_mysql, fileinfo, ftp, redis, memcached, gmp, intl, :php-psr | ||||||
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, pdo_mysql, fileinfo, ftp, redis, memcached, gmp, intl, xml, xdebug, :php-psr | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tools: composer:v2 | ||||||
coverage: none | ||||||
coverage: xdebug | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- name: Set Framework version | ||||||
run: composer config version "11.x-dev" | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should just run on a single PHP version and the latest PHPUnit.