Skip to content

Commit

Permalink
Laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Feb 10, 2022
1 parent a6d6c61 commit 2f1fbdf
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 39 deletions.
61 changes: 30 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

push:
branches: [master]
pull_request:
branches: [master]

jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
- name: Install dependencies
run: composer install
- name: PHPCSFixer check
run: composer check-style
phpunit:
strategy:
matrix:
php_version: [7.4]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: xdebug
- name: Install dependencies
run: composer install
- name: PHPUnit check
run: ./vendor/bin/phpunit --coverage-text
phpcs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
- name: Install dependencies
run: composer install
- name: PHPCSFixer check
run: composer check-style
phpunit:
strategy:
matrix:
php_version: [8.0, 8.1]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: xdebug
- name: Install dependencies
run: composer install
- name: PHPUnit check
run: ./vendor/bin/phpunit --coverage-text
13 changes: 5 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "overtrue/laravel-like",
"description": "\uD83D\uDC4D User-like features for Laravel Application.",
"description": "👍 User-like features for Laravel Application.",
"license": "MIT",
"authors": [
{
Expand All @@ -9,8 +9,7 @@
}
],
"require": {
"php": ">=7.4",
"laravel/framework": "^7.0 || ^8.0"
"laravel/framework": "^9.0"
},
"autoload": {
"psr-4": {
Expand All @@ -23,11 +22,9 @@
}
},
"require-dev": {
"laravel/framework": "^8.0",
"mockery/mockery": "^1.2",
"phpunit/phpunit": "^9.3.8",
"orchestra/testbench": "^6.7.0",
"brainmaestro/composer-git-hooks": "^2.7",
"mockery/mockery": "^1.4",
"phpunit/phpunit": "^9.5",
"orchestra/testbench": "^7.0",
"friendsofphp/php-cs-fixer": "^3.0.0"
},
"extra": {
Expand Down

0 comments on commit 2f1fbdf

Please sign in to comment.