Skip to content

Commit

Permalink
Merge pull request #44 from TheDragonCode/3.x
Browse files Browse the repository at this point in the history
Split Laravel tests
  • Loading branch information
Andrey Helldar authored Jan 17, 2022
2 parents b1acab1 + 082aaed commit 44bb88a
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: phpunit
on: [ push, pull_request ]
name: "Laravel 6"
on: [ push ]

jobs:
phpunit:
Expand All @@ -9,9 +9,9 @@ jobs:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0" ]
laravel: [ "6.0", "7.0", "8.0" ]
laravel: [ "6.0" ]

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
Expand All @@ -25,9 +25,7 @@ jobs:
coverage: none

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

- name: Execute tests
run: sudo vendor/bin/phpunit
31 changes: 31 additions & 0 deletions .github/workflows/laravel-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Laravel 7"
on: [ push ]

jobs:
phpunit:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0" ]
laravel: [ "7.0" ]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none

- name: Install dependencies
run: composer require laravel/framework:^${{ matrix.laravel }}

- name: Execute tests
run: sudo vendor/bin/phpunit
31 changes: 31 additions & 0 deletions .github/workflows/laravel-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Laravel 8"
on: [ push ]

jobs:
phpunit:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0", "8.1" ]
laravel: [ "8.0" ]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none

- name: Install dependencies
run: composer require laravel/framework:^${{ matrix.laravel }}

- name: Execute tests
run: sudo vendor/bin/phpunit
31 changes: 31 additions & 0 deletions .github/workflows/laravel-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Laravel 9"
on: [ push ]

jobs:
phpunit:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "8.0", "8.1" ]
laravel: [ "9.0" ]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none

- name: Install dependencies
run: composer require laravel/framework:^${{ matrix.laravel }}

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

0 comments on commit 44bb88a

Please sign in to comment.