From 4a835ddad34987062081e9448eb407ccaf7d77b8 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 26 Nov 2023 16:36:22 -0800 Subject: [PATCH] PG-18 --- .github/workflows/ci.yml | 7 +++++++ README.md | 1 + phpunit.xml.dist | 10 +++++----- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ac6cc6..143d51c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,3 +22,10 @@ jobs: XDEBUG_MODE: coverage with: php_extensions: xdebug + coverage_clover: clover.xml + - name: Generate test coverage badge + uses: timkrase/phpunit-coverage-badge@v1.2.0 + with: + coverage_badge_path: 'badge-coverage.svg' + push_badge: true + repo_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 3a9da2d..b02aa93 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Playground +![Test Coverage](https://raw.githubusercontent.com/gammamatrix/playground/develop/badge-coverage.svg) ![Playground CI Workflow](https://github.com/gammamatrix/playground/actions/workflows/ci.yml/badge.svg?) This is the base package for Playground. diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e448aa7..535c145 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -27,11 +27,11 @@ tests/Unit - - - + + tests/Feature + - - + -->