Skip to content

Commit 2b200f0

Browse files
Fixed tests runner
1 parent d4332cf commit 2b200f0

File tree

2 files changed

+11
-91
lines changed

2 files changed

+11
-91
lines changed

.github/workflows/laravel.yml

Lines changed: 0 additions & 87 deletions
This file was deleted.
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "phpunit"
1+
name: Tests
22

33
on: [ push ]
44

@@ -8,7 +8,13 @@ jobs:
88
laravel:
99
runs-on: ubuntu-latest
1010

11-
name: PHP Unit
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
php: [ "8.1", "8.2", "8.3" ]
15+
laravel: [ "10.0" ]
16+
17+
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
1218

1319
steps:
1420
- name: Checkout code
@@ -17,13 +23,14 @@ jobs:
1723
- name: Setup PHP
1824
uses: shivammathur/setup-php@v2
1925
with:
26+
php-version: ${{ matrix.php }}
2027
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
21-
coverage: none
28+
coverage: xdebug
2229
env:
2330
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2431

2532
- name: Install dependencies
26-
run: composer update
33+
run: composer require laravel/framework:^${{ matrix.laravel }}
2734

2835
- name: Execute tests
2936
run: sudo vendor/bin/phpunit

0 commit comments

Comments
 (0)