Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 15 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,27 @@ jobs:
php-version: ${{ matrix.php }}
ini-values: memory_limit=128M
extensions: dom, curl, libxml, mbstring, zip, bcmath, intl
coverage: none
coverage: xdebug

- name: Install composer
run: composer install --no-interaction --prefer-dist

- name: Execute tests on Linux
if: matrix.os == 'ubuntu-latest'
- name: Execute tests on Linux with cover
if: ${{ matrix.os == 'ubuntu-latest' && matrix.php == '8.3' }}
run: sudo vendor/bin/phpunit --testdox --coverage-clover clover.xml

- name: Execute tests on Linux with cover
if: ${{ matrix.os == 'ubuntu-latest' && matrix.php != '8.3' }}
run: sudo vendor/bin/phpunit --testdox

- name: Execute tests on Windows
if: matrix.os == 'windows-latest'
run: vendor/bin/phpunit.bat --exclude node --testdox

- name: Generate test coverage badge
if: ${{ matrix.os == 'ubuntu-latest' && matrix.php == '8.3' }}
uses: timkrase/phpunit-coverage-badge@v1.2.0
with:
coverage_badge_path: 'docs/badge-coverage.svg'
push_badge: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/coverage_report.xml
/html_docs
/phpunit.xml
/clover.xml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![ru](docs/ru.svg)](docs/README.ru.md)
[![ru](docs/ru.svg)](docs/README.ru.md) ![PHP versions](docs/php_version.svg) [![license MIT](docs/license-MIT.svg)](LICENSE.md)
# PHP MultiRunner

A package for running multiple processes in parallel in the background and, if necessary,
Expand Down
2 changes: 1 addition & 1 deletion docs/README.ru.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![en](en.svg)](../README.md)
[![en](en.svg)](../README.md) ![PHP versions](php_version.svg) [![license MIT](license-MIT.svg)](../LICENSE.md)
# PHP MultiRunner

Пакет для запуска множества процессов параллельно в фоне и, если необходимо,
Expand Down
16 changes: 16 additions & 0 deletions docs/badge-coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/license-MIT.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/php_version.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading