diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml
index ddfb157..d5b38a9 100644
--- a/.github/workflows/phpunit.yml
+++ b/.github/workflows/phpunit.yml
@@ -41,7 +41,7 @@ jobs:
php-version: ${{ matrix.php-version }}
tools: composer
extensions: json, mbstring, xml
- coverage: none
+ coverage: xdebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -64,6 +64,16 @@ jobs:
fi
- name: Test with PHPUnit
- run: composer test
+ run: vendor/bin/phpunit --coverage-text
env:
TERM: xterm-256color
+
+ - if: matrix.php-version == '8.3'
+ name: Run Coveralls
+ continue-on-error: true
+ run: |
+ composer global require php-coveralls/php-coveralls
+ ~/.composer/vendor/bin/php-coveralls --verbose --coverage_clover=build/phpunit/clover.xml --json_path build/phpunit/coveralls-upload.json
+ env:
+ COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ COVERALLS_FLAG_NAME: PHP ${{ matrix.php-version }}
diff --git a/README.md b/README.md
index 03c681d..80d3610 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,10 @@
# CodeIgniter SSE
+[](https://github.com/maniaba/codeigniter4-sse/actions/workflows/phpunit.yml)
+[](https://github.com/maniaba/codeigniter4-sse/actions/workflows/phpstan.yml)
+[](https://github.com/maniaba/codeigniter4-sse/actions/workflows/docs.yml)
+[](https://coveralls.io/github/maniaba/codeigniter4-sse?branch=develop)
+
[](https://www.php.net/)
[](https://codeigniter.com/)
[](LICENSE.md)
diff --git a/composer.json b/composer.json
index 4810777..977e7bf 100644
--- a/composer.json
+++ b/composer.json
@@ -77,7 +77,7 @@
"rector": "rector process --dry-run",
"rector-fix": "rector process",
"style": "@cs-fix",
- "test": "phpunit --configuration=phpunit.xml.dist",
+ "test": "phpunit --configuration=phpunit.xml.dist --no-coverage",
"test-browser": "node --test tests/Browser/*.test.mjs"
},
"config": {
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 2cb2ab3..f07c330 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -9,6 +9,15 @@
executionOrder="random"
failOnRisky="true"
failOnWarning="true">
+
+
+
+
+
+
+
+
+
tests
@@ -20,6 +29,8 @@
+
+