Skip to content

Commit 016d079

Browse files
authored
Skip nova tests on pull requests
1 parent 0a9cf23 commit 016d079

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/laravel.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
postgresql user: 'homestead'
4747
postgresql password: 'secret'
4848

49+
- name: Remove Nova on a pull request
50+
if: github.event_name == 'pull_request'
51+
run: composer remove laravel/nova --no-update --no-interaction
52+
4953
- name: Copy .env
5054
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
5155

@@ -54,5 +58,9 @@ jobs:
5458
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
5559
composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
5660
57-
- name: Execute tests (Unit and Feature tests) via PHPUnit
58-
run: vendor/bin/phpunit --configuration phpunit.xml.dist
61+
- name: Execute Integration and Feature tests via PHPUnit
62+
run: vendor/bin/phpunit --configuration phpunit.xml.dist --testsuite Integration,Feature
63+
64+
- name: Execute Nova tests via PHPUnit
65+
if: github.event_name != 'pull_request'
66+
run: vendor/bin/phpunit --configuration phpunit.xml.dist --testsuite Nova

0 commit comments

Comments
 (0)