Skip to content

Commit

Permalink
Merge pull request #22 from TheDragonCode/2.x
Browse files Browse the repository at this point in the history
Split GitHub Actions rules
  • Loading branch information
Andrey Helldar authored Dec 15, 2021
2 parents 6c166c7 + 710e6a8 commit 5c3b70c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Laravel 6-7"
name: "Laravel 6"
on: [ push ]

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

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

steps:
- name: Checkout code
Expand Down
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:
build:
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 --dev laravel/framework:^${{ matrix.laravel }}

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

0 comments on commit 5c3b70c

Please sign in to comment.