Skip to content

Commit 44bb88a

Browse files
author
Andrey Helldar
authored
Merge pull request #44 from TheDragonCode/3.x
Split Laravel tests
2 parents b1acab1 + 082aaed commit 44bb88a

File tree

4 files changed

+98
-7
lines changed

4 files changed

+98
-7
lines changed

.github/workflows/phpunit.yml renamed to .github/workflows/laravel-6.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: phpunit
2-
on: [ push, pull_request ]
1+
name: "Laravel 6"
2+
on: [ push ]
33

44
jobs:
55
phpunit:
@@ -9,9 +9,9 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
php: [ "7.3", "7.4", "8.0" ]
12-
laravel: [ "6.0", "7.0", "8.0" ]
12+
laravel: [ "6.0" ]
1313

14-
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
14+
name: PHP ${{ matrix.php }}
1515

1616
steps:
1717
- name: Checkout code
@@ -25,9 +25,7 @@ jobs:
2525
coverage: none
2626

2727
- name: Install dependencies
28-
run: |
29-
composer require --dev laravel/framework:^${{ matrix.laravel }}
30-
composer update --prefer-stable --prefer-dist --no-progress --no-interaction
28+
run: composer require laravel/framework:^${{ matrix.laravel }}
3129

3230
- name: Execute tests
3331
run: sudo vendor/bin/phpunit

.github/workflows/laravel-7.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Laravel 7"
2+
on: [ push ]
3+
4+
jobs:
5+
phpunit:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [ "7.3", "7.4", "8.0" ]
12+
laravel: [ "7.0" ]
13+
14+
name: PHP ${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: composer require laravel/framework:^${{ matrix.laravel }}
29+
30+
- name: Execute tests
31+
run: sudo vendor/bin/phpunit

.github/workflows/laravel-8.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Laravel 8"
2+
on: [ push ]
3+
4+
jobs:
5+
phpunit:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [ "7.3", "7.4", "8.0", "8.1" ]
12+
laravel: [ "8.0" ]
13+
14+
name: PHP ${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: composer require laravel/framework:^${{ matrix.laravel }}
29+
30+
- name: Execute tests
31+
run: sudo vendor/bin/phpunit

.github/workflows/laravel-9.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Laravel 9"
2+
on: [ push ]
3+
4+
jobs:
5+
phpunit:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [ "8.0", "8.1" ]
12+
laravel: [ "9.0" ]
13+
14+
name: PHP ${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: composer require laravel/framework:^${{ matrix.laravel }}
29+
30+
- name: Execute tests
31+
run: sudo vendor/bin/phpunit

0 commit comments

Comments
 (0)