Skip to content

feat(init): This is where it all begins... #2

feat(init): This is where it all begins...

feat(init): This is where it all begins... #2

Workflow file for this run

name: Coverage
on:
push:
branches:
- master
jobs:
coverage:
name: "Generate code coverage"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Build package
run: composer install --no-interaction --no-progress
- name: PHPUnit
run: ./vendor/bin/phpunit tests --coverage-clover clover.xml
- name: Generate Badge
uses: timkrase/phpunit-coverage-badge@v1.2.1
with:
coverage_badge_path: output/coverage.svg
push_badge: false
- name: Push Badge
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./output
publish_branch: image-data
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'