Skip to content

Commit 3938d57

Browse files
committed
Fix
1 parent cb48176 commit 3938d57

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/run-tests.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
name: run-tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
48

59
jobs:
610
test:
711
runs-on: ${{ matrix.os }}
812
strategy:
913
fail-fast: true
1014
matrix:
11-
os: [ubuntu-latest]
12-
php: [8.0, 8.1, 8.2]
13-
laravel: [9.*, 10.*]
14-
stability: [prefer-stable]
15-
exclude:
15+
os: [ubuntu-latest, windows-latest]
16+
php: [8.1]
17+
laravel: [10.*]
18+
stability: [prefer-lowest, prefer-stable]
19+
include:
1620
- laravel: 10.*
17-
php: 8.0
21+
testbench: 8.0
1822

1923
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2024

@@ -33,9 +37,11 @@ jobs:
3337
run: |
3438
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
3539
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
40+
3641
- name: Install dependencies
3742
run: |
38-
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
43+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
3944
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
45+
4046
- name: Execute tests
41-
run: vendor/bin/phpunit
47+
run: vendor/bin/pest

0 commit comments

Comments
 (0)