Skip to content

Merge pull request #20 from genius257/2.x #26

Merge pull request #20 from genius257/2.x

Merge pull request #20 from genius257/2.x #26

name: Codacy Coverage Reporter
on: ["push"]
jobs:
codacy-coverage-reporter:
runs-on: ubuntu-latest
name: Codacy Coverage Reporter
steps:
- uses: actions/checkout@v2
- name: Composer (php-actions)
uses: php-actions/composer@v6
with:
php_version: "7.4"
version: 2.x
- name: PHPUnit (php-actions)
uses: php-actions/phpunit@v3
with:
configuration: phpunit.xml
version: "9.6"
php_version: "7.4"
php_extensions: "xdebug mbstring"
args: --coverage-clover phpunit-clover.xml
env:
XDEBUG_MODE: coverage
- name: Run codacy-coverage-reporter
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# or
# api-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: phpunit-clover.xml