diff --git a/.github/workflows/ci.yml b/.github/workflows/tests.yml similarity index 70% rename from .github/workflows/ci.yml rename to .github/workflows/tests.yml index 0cc5fb2..89509d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: ci +name: tests on: push: @@ -30,7 +30,15 @@ jobs: - name: Run PHPUnit run: vendor/bin/phpunit --coverage-clover=coverage.xml - - name: Upload coverage + - name: Upload coverage to codecov uses: codecov/codecov-action@v2 with: files: ./coverage.xml + + - name: Upload coverage to codeclimate + uses: paambaati/codeclimate-action@v3.0.0 + env: + CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TOKEN }} + with: + coverageCommand: '' + coverageLocations: ./coverage.xml:clover diff --git a/README.md b/README.md index 592e6d7..bd49f45 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ [![Total Downloads](https://poser.pugx.org/brokeyourbike/resolve-uri-php/downloads)](https://packagist.org/packages/brokeyourbike/resolve-uri-php) [![License: MPL-2.0](https://img.shields.io/badge/license-MPL--2.0-purple.svg)](https://github.com/brokeyourbike/resolve-uri-php/blob/main/LICENSE) -[![ci](https://github.com/brokeyourbike/resolve-uri-php/actions/workflows/ci.yml/badge.svg)](https://github.com/brokeyourbike/resolve-uri-php/actions/workflows/ci.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/3df6e54f7cf05830ded9/maintainability)](https://codeclimate.com/github/brokeyourbike/resolve-uri-php/maintainability) -[![codecov](https://codecov.io/gh/brokeyourbike/resolve-uri-php/branch/main/graph/badge.svg?token=ImcgnxzGfc)](https://codecov.io/gh/brokeyourbike/resolve-uri-php) +[![Test Coverage](https://api.codeclimate.com/v1/badges/3df6e54f7cf05830ded9/test_coverage)](https://codeclimate.com/github/brokeyourbike/resolve-uri-php/test_coverage) +[![tests](https://github.com/brokeyourbike/resolve-uri-php/actions/workflows/tests.yml/badge.svg)](https://github.com/brokeyourbike/resolve-uri-php/actions/workflows/tests.yml) Trait for resolving URI