Skip to content

Added github action workflow to upload code coverage to Scrutinizer #1

Added github action workflow to upload code coverage to Scrutinizer

Added github action workflow to upload code coverage to Scrutinizer #1

Workflow file for this run

on:
workflow_run:
workflows: [Lint and Test]
types: [completed]
jobs:
scrutinize:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- name: Cache Composer packages
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php_version}}-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
uses: php-actions/composer@v6
- name: Generate PHP tests coverage
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover coverage.clover
- name: Upload Scrutinizer coverage
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: "--format=php-clover ./clover.xml

Check failure on line 24 in .github/workflows/scrutinize.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/scrutinize.yaml

Invalid workflow file

You have an error in your yaml syntax on line 24