Skip to content

Commit 39955f6

Browse files
authored
Merge pull request lukewaite#41 from lukewaite/add_scruitinizer_2
Add scruitinizer
2 parents 5cd0344 + 86097aa commit 39955f6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ jobs:
1818
strategy:
1919
fail-fast: true
2020
matrix:
21-
php: ['7.3', '7.4', '8.0', '8.1', '8.2']
21+
php: [ '7.3', '7.4', '8.0', '8.1', '8.2' ]
2222

2323
name: PHP ${{ matrix.php }}
2424

2525
steps:
2626
- name: Checkout code
2727
uses: actions/checkout@v3
28+
with:
29+
fetch-depth: 10
2830

2931
- name: Setup PHP
3032
uses: shivammathur/setup-php@v2
@@ -37,3 +39,8 @@ jobs:
3739

3840
- name: Execute tests
3941
run: vendor/bin/phpunit
42+
43+
- name: Upload Scrutinizer coverage
44+
uses: sudo-bot/action-scrutinizer@latest
45+
with:
46+
cli-args: "--format=php-clover tests/reports/clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ which will fire your batch job at the correct time.
9393
[ico-version]: https://img.shields.io/packagist/v/lukewaite/laravel-queue-aws-batch.svg?style=flat-square
9494
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
9595
[ico-github]: https://img.shields.io/github/workflow/status/lukewaite/laravel-queue-aws-batch/Tests/main.svg?style=flat-square
96-
[ico-coverage]: https://img.shields.io/scrutinizer/coverage/g/lukewaite/laravel-queue-aws-batch/master.svg?style=flat-square
96+
[ico-coverage]: https://img.shields.io/scrutinizer/coverage/g/lukewaite/laravel-queue-aws-batch/main.svg?style=flat-square
9797

9898
[link-packagist]: https://packagist.org/packages/lukewaite/laravel-queue-aws-batch
9999
[link-github]: https://github.com/lukewaite/laravel-queue-aws-batch/actions/workflows/tests.yml?query=branch%3Amain++
100-
[link-coverage]: https://scrutinizer-ci.com/g/lukewaite/laravel-queue-aws-batch/?branch=master
100+
[link-coverage]: https://scrutinizer-ci.com/g/lukewaite/laravel-queue-aws-batch/?branch=main

0 commit comments

Comments
 (0)