Skip to content

Commit 3b344cf

Browse files
committed
Laravel 9
1 parent f8eeb08 commit 3b344cf

File tree

2 files changed

+85
-85
lines changed

2 files changed

+85
-85
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,34 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
8-
7+
branches: [master]
98

109
jobs:
1110
phpcs:
1211
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v2
15-
- name: Setup PHP environment
16-
uses: shivammathur/setup-php@v2
17-
- name: Install dependencies
18-
run: composer install
19-
- name: PHPCSFixer check
20-
run: composer check-style
13+
- uses: actions/checkout@v2
14+
- name: Setup PHP environment
15+
uses: shivammathur/setup-php@v2
16+
- name: Install dependencies
17+
run: composer install
18+
- name: PHPCSFixer check
19+
run: composer check-style
2120
phpunit:
2221
strategy:
2322
matrix:
24-
php_version: [7.4, 8.0]
23+
php_version: [8.0, 8.1]
2524
runs-on: ubuntu-latest
2625
steps:
27-
- uses: actions/checkout@v2
28-
- name: Setup PHP environment
29-
uses: shivammathur/setup-php@v2
30-
with:
31-
php-version: ${{ matrix.php_version }}
32-
coverage: xdebug
33-
- name: Install dependencies
34-
run: composer install
35-
- name: PHPUnit check
36-
run: ./vendor/bin/phpunit --coverage-text
26+
- uses: actions/checkout@v2
27+
- name: Setup PHP environment
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php_version }}
31+
coverage: xdebug
32+
- name: Install dependencies
33+
run: composer install
34+
- name: PHPUnit check
35+
run: ./vendor/bin/phpunit --coverage-text

composer.json

Lines changed: 65 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,69 @@
11
{
2-
"name": "overtrue/laravel-follow",
3-
"description": "User follow unfollow system for Laravel.",
4-
"license": "MIT",
5-
"authors": [
6-
{
7-
"name": "overtrue",
8-
"email": "[email protected]"
9-
}
10-
],
11-
"require": {
12-
"laravel/framework": "^8.0"
13-
},
14-
"autoload": {
15-
"psr-4": {
16-
"Overtrue\\LaravelFollow\\": "src"
17-
}
18-
},
19-
"autoload-dev": {
20-
"psr-4": {
21-
"Tests\\": "tests"
22-
}
23-
},
24-
"require-dev": {
25-
"mockery/mockery": "^1.2",
26-
"phpunit/phpunit": "^9.0",
27-
"orchestra/testbench": "^6.0",
28-
"brainmaestro/composer-git-hooks": "^2.7",
29-
"friendsofphp/php-cs-fixer": "^3.0"
30-
},
31-
"extra": {
32-
"laravel": {
33-
"providers": ["Overtrue\\LaravelFollow\\FollowServiceProvider"]
34-
},
35-
"hooks": {
36-
"pre-commit": [
37-
"composer fix-style",
38-
"composer test"
39-
],
40-
"pre-push": [
41-
"composer test",
42-
"composer check-style"
43-
]
44-
}
45-
},
46-
"scripts": {
47-
"post-update-cmd": [
48-
"cghooks remove",
49-
"cghooks add --ignore-lock",
50-
"cghooks update"
51-
],
52-
"post-merge": "composer install",
53-
"post-install-cmd": [
54-
"cghooks remove",
55-
"cghooks add --ignore-lock",
56-
"cghooks update"
57-
],
58-
"cghooks": "vendor/bin/cghooks",
59-
"check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi",
60-
"fix-style": "php-cs-fixer fix --using-cache=no --ansi",
61-
"test": "phpunit --colors=always"
2+
"name": "overtrue/laravel-follow",
3+
"description": "User follow unfollow system for Laravel.",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "overtrue",
8+
"email": "[email protected]"
9+
}
10+
],
11+
"require": {
12+
"laravel/framework": "^9.0"
13+
},
14+
"autoload": {
15+
"psr-4": {
16+
"Overtrue\\LaravelFollow\\": "src"
17+
}
18+
},
19+
"autoload-dev": {
20+
"psr-4": {
21+
"Tests\\": "tests"
22+
}
23+
},
24+
"require-dev": {
25+
"mockery/mockery": "^1.4",
26+
"phpunit/phpunit": "^9.5",
27+
"orchestra/testbench": "^7.0",
28+
"friendsofphp/php-cs-fixer": "^3.0"
29+
},
30+
"extra": {
31+
"laravel": {
32+
"providers": [
33+
"Overtrue\\LaravelFollow\\FollowServiceProvider"
34+
]
6235
},
63-
"scripts-descriptions": {
64-
"test": "Run all tests.",
65-
"check-style": "Run style checks (only dry run - no fixing!).",
66-
"fix-style": "Run style checks and fix violations."
36+
"hooks": {
37+
"pre-commit": [
38+
"composer fix-style",
39+
"composer test"
40+
],
41+
"pre-push": [
42+
"composer test",
43+
"composer check-style"
44+
]
6745
}
46+
},
47+
"scripts": {
48+
"post-update-cmd": [
49+
"cghooks remove",
50+
"cghooks add --ignore-lock",
51+
"cghooks update"
52+
],
53+
"post-merge": "composer install",
54+
"post-install-cmd": [
55+
"cghooks remove",
56+
"cghooks add --ignore-lock",
57+
"cghooks update"
58+
],
59+
"cghooks": "vendor/bin/cghooks",
60+
"check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi",
61+
"fix-style": "php-cs-fixer fix --using-cache=no --ansi",
62+
"test": "phpunit --colors=always"
63+
},
64+
"scripts-descriptions": {
65+
"test": "Run all tests.",
66+
"check-style": "Run style checks (only dry run - no fixing!).",
67+
"fix-style": "Run style checks and fix violations."
68+
}
6869
}

0 commit comments

Comments
 (0)