File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 7878
7979 - name : " Coverage"
8080 run : echo "$(cat ./.phpunit/coverage.txt)"
81+
82+ - name : Make code coverage badge
83+ 84+ with :
85+ coverage_badge_path : .github/coverage.svg
86+ # push badge later on
87+ push_badge : false
88+
89+ - name : Git push badges to image-data branch
90+ uses : peaceiris/actions-gh-pages@v3
91+ with :
92+ publish_dir : .github
93+ publish_branch : image-data
94+ github_token : ${{ secrets.GITHUB_TOKEN }}
95+ user_name : ' github-actions[bot]'
96+ user_email : ' github-actions[bot]@users.noreply.github.com'
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ PHP Wrapper for Google Analytics 4 with Server Side Tracking
33[ ![ PHP Version] ( https://img.shields.io/packagist/php-v/alexwestergaard/php-ga4?color=blue&style=for-the-badge )] ( https://www.php.net/releases/ )
44[ ![ Release Size] ( https://img.shields.io/github/languages/code-size/alexwestergaard/php-ga4?color=blue&style=for-the-badge )] ( https://github.com/AlexWestergaard/php-ga4/releases/latest )
55[ ![ Issues] ( https://img.shields.io/github/issues-raw/alexwestergaard/php-ga4?color=red&style=for-the-badge )] ( https://github.com/AlexWestergaard/php-ga4/issues )
6+ [ ![ Tests] ( https://github.com/AlexWestergaard/php-ga4/actions/workflows/ci.yml/badge.svg )] ( https://github.com/AlexWestergaard/php-ga4/actions/workflows/ci.yml )
7+ ![ Code Coverage Badge] ( https://raw.githubusercontent.com/AlexWestergaard/php-ga4/image-data/coverage.svg )
68
79``` sh
810composer require alexwestergaard/php-ga4
Original file line number Diff line number Diff line change 2121 <report >
2222 <text outputFile =" ./.phpunit/coverage.txt" showUncoveredFiles =" true"
2323 showOnlySummary =" false" />
24+ <clover outputFile =" clover.xml" />
2425 </report >
2526 </coverage >
2627 <php >
You can’t perform that action at this time.
0 commit comments