diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 60e8db79..1e4aba2c 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -76,12 +76,12 @@ jobs: DB_USERNAME: root DB_PASSWORD: password run: | - vendor/bin/phpunit --coverage-clover clover.xml + vendor/bin/phpunit --coverage-clover tests/coverage/clover.xml vendor/bin/pint - name: Generate test coverage badge uses: timkrase/phpunit-coverage-badge@v1.2.0 with: - coverage_badge_path: 'badge-coverage.svg' + coverage_badge_path: 'tests/coverage/badge-coverage.svg' push_badge: true repo_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index b6ebc497..2603df5b 100755 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,3 @@ _ide_helper.php *.swp *.swo .phpunit.result.cache -/tests/coverage diff --git a/README.md b/README.md index 647ca1c8..d12b112a 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Test Coverage](https://raw.githubusercontent.com/alimranahmed/LaraBlog/main/badge-coverage.svg)](https://packagist.org/packages/alimranahmed/LaraBlog) +[![Test Coverage](https://raw.githubusercontent.com/alimranahmed/LaraBlog/main/tests/coverage/badge-coverage.svg)](https://packagist.org/packages/alimranahmed/LaraBlog) [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)