Skip to content

Commit 47f6e61

Browse files
author
Andrey Helldar
authored
Merge pull request #16 from TheDragonCode/2.x
Added GitHub Actions rules for the PHP 8.1
2 parents 181ef26 + b80262c commit 47f6e61

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

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

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

44
jobs:
@@ -9,7 +9,7 @@ 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", "7.0" ]
1313

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

.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+
build:
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 }}, Laravel ${{ matrix.laravel }}
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)