Skip to content

Commit

Permalink
Merge pull request #21 from laracasts/coverage
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
lukeraymonddowning authored Sep 27, 2024
2 parents 1816cc2 + ff1bcbd commit a45a708
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ inputs:
nova-password:
description: The password used to authenticate Nova.
required: true
coverage:
description: The coverage driver to use.
required: false
default: none

runs:
using: composite
Expand Down Expand Up @@ -48,6 +52,7 @@ runs:
php-version: ${{ inputs.php-version }}
extensions: ${{ inputs.php-extensions }}
tools: composer:v2
coverage: ${{ inputs.coverage }}

- name: Get Composer cache dir
id: composer-cache-dir
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
php-version: '8.3'
nova-email: ${{ secrets.NOVA_EMAIL }}
nova-password: ${{ secrets.NOVA_PASSWORD }}
coverage: xdebug

- name: Install Project Dependencies
run: composer install -q --no-interaction --no-progress
Expand All @@ -43,4 +44,4 @@ jobs:
run: php artisan key:generate

- name: Run Tests
run: php artisan test --compact
run: php artisan test --compact --coverage --min=75

0 comments on commit a45a708

Please sign in to comment.