generated from overtrue/php-package
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from JimChenWYU/master
Support Laravel 6
- Loading branch information
Showing
4 changed files
with
82 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
php_cs_fixer: | ||
name: PHP-CS-Fxier | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php_version: | ||
- 7.4 | ||
perfer: | ||
- stable | ||
container: | ||
image: nauxliu/php-ci-image:${{ matrix.php_version }} | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Dependencies | ||
run: composer install --prefer-dist --no-interaction --no-suggest | ||
- name: Run PHP-CS-Fxier | ||
run: composer check-style | ||
|
||
phpunit: | ||
name: phpunit | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php_version: | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
perfer: | ||
- stable | ||
container: | ||
image: nauxliu/php-ci-image:${{ matrix.php_version }} | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Dependencies | ||
run: composer install --prefer-dist --no-interaction --no-suggest | ||
- name: Run PHPUnit | ||
run: ./vendor/bin/phpunit | ||
|
||
L6_test: | ||
name: L6_test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php_version: | ||
- 7.4 | ||
perfer: | ||
- stable | ||
container: | ||
image: nauxliu/php-ci-image:${{ matrix.php_version }} | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install laravel/framework:^6.0 | ||
run: composer require "laravel/framework:^6.0" | ||
- name: Install Dependencies | ||
run: composer install --prefer-dist --no-interaction --no-suggest | ||
- name: Laravel Version | ||
run: cat vendor/laravel/framework/src/Illuminate/Foundation/Application.php | grep "const VERSION" | ||
- name: Run PHPUnit | ||
run: composer test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters