Skip to content

Commit 5c3b70c

Browse files
author
Andrey Helldar
authored
Merge pull request #22 from TheDragonCode/2.x
Split GitHub Actions rules
2 parents 6c166c7 + 710e6a8 commit 5c3b70c

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Laravel 6-7"
1+
name: "Laravel 6"
22
on: [ push ]
33

44
jobs:
@@ -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" ]
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

.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+
build:
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 --dev laravel/framework:^${{ matrix.laravel }}
29+
30+
- name: Execute tests
31+
run: sudo vendor/bin/phpunit

0 commit comments

Comments
 (0)