Skip to content

Commit

Permalink
Improve testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Aug 19, 2021
1 parent d300afa commit b7a3dca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ jobs:
php: [8.0, 7.4, 7.3]
release: [stable, lowest]
include:
- php: 7.4
- php: 8.0
release: stable
coverage: xdebug

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/cache@v2
with:
path: ~/.composer/cache/files
Expand All @@ -30,7 +32,5 @@ jobs:
- run: |
PHPUNIT_FLAGS=$([ "${{ matrix.coverage }}" == "xdebug" ] && echo "--coverage-clover=coverage.xml" || echo "")
vendor/bin/phpunit $PHPUNIT_FLAGS
- run: |
wget -q https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
- run: vendor/bin/ocular code-coverage:upload --format=php-clover coverage.xml
if: matrix.coverage == 'xdebug'
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"illuminate/database": "^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.3"
"phpunit/phpunit": "^9.3",
"scrutinizer/ocular": "^1.8"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit b7a3dca

Please sign in to comment.