martin-helmich/phpunit-json-assert

View on GitHub
.github/workflows/php_coverage.yml

Summary

Maintainability
Test Coverage
name: Code coverage

on:
  push:
    branches:

jobs:
  coverage:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: 8.3
        extensions: mbstring, intl, json
        coverage: pcov

    - name: Install dependencies
      run: composer install --prefer-dist --no-progress --no-suggest

    - name: Test & publish code coverage
      uses: paambaati/codeclimate-action@v3.0.0
      env:
        CC_TEST_REPORTER_ID: ${{ secrets.codeClimateReporterID }}
      with:
        coverageCommand: ./vendor/bin/phpunit --coverage-clover=clover.xml
        debug: true