Skip to content

Commit 33fe0df

Browse files
committed
Coverage & Badges
1 parent 003ec3f commit 33fe0df

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/php-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: run-tests
1+
name: PhpUnit
22

33
on:
44
pull_request:
@@ -27,4 +27,10 @@ jobs:
2727
run: composer install -n --prefer-dist
2828

2929
- name: Run tests
30-
run: vendor/bin/phpunit
30+
run: vendor/bin/phpunit --coverage-clover=clover.xml
31+
32+
- name: Run codacy-coverage-reporter
33+
uses: codacy/codacy-coverage-reporter-action@v1.3.0
34+
with:
35+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
36+
coverage-reports: clover.xml

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# GooglePolyline
22

3+
[![run-tests](https://github.com/Traewelling/GooglePolyline/actions/workflows/php-tests.yml/badge.svg)](https://github.com/Traewelling/GooglePolyline/actions/workflows/php-tests.yml)
4+
[![PHPStan](https://github.com/Traewelling/GooglePolyline/actions/workflows/phpstan.yml/badge.svg)](https://github.com/Traewelling/GooglePolyline/actions/workflows/phpstan.yml)
5+
![GitHub License](https://img.shields.io/github/license/Traewelling/GooglePolyline)
6+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e8fcc71d1de9447db8893cb0944bf102)](https://app.codacy.com/gh/Traewelling/GooglePolyline/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
7+
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/e8fcc71d1de9447db8893cb0944bf102)](https://app.codacy.com/gh/Traewelling/GooglePolyline/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
8+
39
Since [Transitous](https://transitous.org/)/[Motis](https://github.com/motis-project/motis) uses a non-standard
410
implementation of
511
Google's [Encoded Polyline Algorithm Format](https://developers.google.com/maps/documentation/utilities/polylinealgorithm),

0 commit comments

Comments
 (0)