diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c742ef6..aa0c329 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -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 }}
diff --git a/.gitignore b/.gitignore
index d3b4a0f..d71c5bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/coverage_report.xml
/html_docs
/phpunit.xml
+/clover.xml
diff --git a/README.md b/README.md
index 96f29dd..5e0e205 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[](docs/README.ru.md)
+[](docs/README.ru.md)  [](LICENSE.md)
# PHP MultiRunner
A package for running multiple processes in parallel in the background and, if necessary,
diff --git a/docs/README.ru.md b/docs/README.ru.md
index b7ee3ce..bb01324 100644
--- a/docs/README.ru.md
+++ b/docs/README.ru.md
@@ -1,4 +1,4 @@
-[](../README.md)
+[](../README.md)  [](../LICENSE.md)
# PHP MultiRunner
Пакет для запуска множества процессов параллельно в фоне и, если необходимо,
diff --git a/docs/badge-coverage.svg b/docs/badge-coverage.svg
new file mode 100644
index 0000000..5712e1c
--- /dev/null
+++ b/docs/badge-coverage.svg
@@ -0,0 +1,16 @@
+
\ No newline at end of file
diff --git a/docs/license-MIT.svg b/docs/license-MIT.svg
new file mode 100644
index 0000000..5e0fccf
--- /dev/null
+++ b/docs/license-MIT.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/php_version.svg b/docs/php_version.svg
new file mode 100644
index 0000000..2888064
--- /dev/null
+++ b/docs/php_version.svg
@@ -0,0 +1 @@
+
\ No newline at end of file