diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 57439f6..d06962d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: tests +name: build on: push: @@ -47,9 +47,15 @@ jobs: - name: Execute tests run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml --exclude-group flaky + - name: Coverage + if: ${{ matrix.php == '8.1' && matrix.deps == 'lowest' }} + shell: bash + env: + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} + run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r build/logs/clover.xml - name: Store artifacts uses: actions/upload-artifact@v3 with: name: logs - path: build/logs + path: build/logs diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index a857370..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,13 +0,0 @@ -imports: - - php - -build: - environment: - php: "8.1" - tests: - override: - - command: "vendor/bin/phpunit --coverage-clover=clover.xml --exclude-group flaky" - coverage: - file: "build/logs/clover.xml" - format: "clover" - - php-scrutinizer-run diff --git a/README.md b/README.md index df1e666..bdcb35d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # EmailValidator [![Build Status](https://github.com/egulias/EmailValidator/workflows/tests/badge.svg?branch=4.x)](https://github.com/egulias/EmailValidator/actions) -[![Code Quality](https://scrutinizer-ci.com/g/egulias/EmailValidator/badges/quality-score.png?b=3.x)](https://scrutinizer-ci.com/g/egulias/EmailValidator/?branch=4.x) -[![Test Coverage](https://scrutinizer-ci.com/g/egulias/EmailValidator/badges/coverage.png?b=3.x)](https://scrutinizer-ci.com/g/egulias/EmailValidator/?branch=4.x) +[![Quality Badge](https://app.codacy.com/project/badge/Grade/55d44898c7e44ebdb4e457523563ad63)](https://app.codacy.com/gh/egulias/EmailValidator/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) +[![Test Coverage](https://app.codacy.com/project/badge/Coverage/55d44898c7e44ebdb4e457523563ad63)](https://app.codacy.com/gh/egulias/EmailValidator/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) A library for validating emails against several RFC.