Skip to content

Commit 611249c

Browse files
Clean up run-tests workflow
1 parent 702e2be commit 611249c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/run-tests.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ on:
66
jobs:
77
php-tests:
88
runs-on: ubuntu-latest
9+
continue-on-error: ${{ matrix.php == 'nightly' }}
10+
911
strategy:
1012
fail-fast: true
1113
matrix:
12-
os: [ubuntu-latest]
1314
laravel: [10.*, 11.*]
14-
php: [8.2, 8.3, 8.4]
15-
dependency-version: [prefer-stable]
15+
php: [8.2, 8.3, 8.4, nightly]
16+
stability: [--prefer-lowest, --prefer-stable]
1617
include:
1718
- laravel: 10.*
1819
testbench: 8.*
@@ -47,9 +48,12 @@ jobs:
4748
4849
- name: Install PHP dependencies
4950
run: |
50-
composer config --ansi -- "http-basic.nova.laravel.com" ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }}
51-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
52-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
51+
composer config -- "http-basic.nova.laravel.com" ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }}
52+
composer require --dev --no-interaction --no-update \
53+
"laravel/framework:${{ matrix.laravel }}" \
54+
"orchestra/testbench:${{ matrix.testbench }}" \
55+
"phpunit/phpunit:${{ matrix.phpunit }}"
56+
composer update ${{ matrix.stability }} --prefer-dist --no-interaction
5357
5458
- name: Run PHP tests
5559
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)