diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 18223d4..3a9e4f6 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -42,3 +42,18 @@ jobs: - name: Run test suite run: composer run-script test + + - name: Make code coverage badge + uses: timkrase/phpunit-coverage-badge@v1.2.1 + with: + coverage_badge_path: output/coverage.svg + push_badge: false + + - name: Git push to image-data branch + 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'