Skip to content

Commit

Permalink
chore: add badges
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed Oct 22, 2021
1 parent cdc3220 commit 791a347
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
@@ -1,4 +1,4 @@
name: ci
name: tests

on:
push:
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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

Expand Down

0 comments on commit 791a347

Please sign in to comment.