Skip to content

Commit

Permalink
Added coveralls code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kielabokkie committed May 31, 2020
1 parent 9ae6e48 commit 710d1df
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@ jobs:
composer update --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit --coverage-clover build/coverage/clover.xml

- name: Submit code coverage report
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require cedx/coveralls
coveralls build/coverage/clover.xml
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Author](http://img.shields.io/badge/by-@kielabokkie-lightgrey.svg?style=flat-square)](https://twitter.com/kielabokkie)
[![Build](https://img.shields.io/github/workflow/status/kielabokkie/laravel-apise/workflows/run-tests/master?style=flat-square)](https://github.com/kielabokkie/laravel-apise/actions)
[![Coveralls github](https://img.shields.io/coveralls/github/kielabokkie/laravel-apise?style=flat-square)]()
[![Packagist Version](https://img.shields.io/packagist/v/kielabokkie/laravel-apise.svg?style=flat-square)](https://packagist.org/packages/kielabokkie/laravel-apise)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)

Expand Down Expand Up @@ -181,7 +182,7 @@ php artisan apise:prune --hours 24

To automatically prune old logs you can add it to the Laravel scheduler `app/Console/Kernel.php`, for example:

```
```php
protected function schedule(Schedule $schedule)
{
// Clean up logs older than 3 days
Expand Down
2 changes: 1 addition & 1 deletion public/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/main.js": "/main.js?id=2b1d1a59bf0d56c885c4",
"/tailwind.css": "/tailwind.css?id=0e5c78eaaf2865a7321f"
"/main.js": "/main.js?id=6fb4f8b23c432d7d3294",
"/tailwind.css": "/tailwind.css?id=e6d2c480ee18e013b366"
}
2 changes: 1 addition & 1 deletion public/tailwind.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 710d1df

Please sign in to comment.