Merge branch 'release/0.3.0' #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage-badge | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Generate Coverage Badge | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache Composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
- name: composer | |
uses: php-actions/composer@v6 | |
with: | |
php_version: 8.2 | |
php_extensions: xdebug gd | |
- name: PHPUnit Tests | |
uses: php-actions/phpunit@v3 | |
with: | |
version: 10.2 | |
php_version: 8.2 | |
php_extensions: xdebug gd | |
bootstrap: vendor/autoload.php | |
configuration: phpunit.xml.dist | |
args: --coverage-clover coverage.xml | |
env: | |
XDEBUG_MODE: coverage | |
- name: Generate PHPUnit coverage badge | |
uses: timkrase/phpunit-coverage-badge@v1.2.0 | |
with: | |
report: 'coverage.xml' | |
coverage_badge_path: 'plugin/.coverage/badge.svg' | |
- name: Commit PHPUnit coverage badge | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: 'badge.svg' | |
cwd: './plugin/.coverage' | |
message: 'Update PHPUnit coverage badge' | |
new_branch: develop |