Skip to content

Commit be741bf

Browse files
committed
Fixed #15
1 parent ae8ccf4 commit be741bf

File tree

3 files changed

+35
-55
lines changed

3 files changed

+35
-55
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github: []
1+
github: [overtrue]
22
patreon: overtrue
33
custom: https://www.easywechat.com/img/pay/wechat.jpg

.github/workflows/ci.yml

Lines changed: 32 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,36 @@ name: CI
22
on: [push, pull_request]
33

44
jobs:
5-
php_cs_fixer:
6-
name: PHP-CS-Fxier
7-
runs-on: ubuntu-latest
8-
strategy:
9-
fail-fast: false
10-
matrix:
11-
php_version:
12-
- 7.4
13-
perfer:
14-
- stable
15-
steps:
16-
- uses: actions/checkout@master
17-
- name: Install Dependencies
18-
run: composer install --prefer-dist --no-interaction --no-suggest
5+
php_cs_fixer:
6+
name: PHP-CS-Fxier
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
php_version:
12+
- 8.0
13+
- 8.1
14+
perfer:
15+
- stable
16+
steps:
17+
- uses: actions/checkout@master
18+
- name: Install Dependencies
19+
run: composer install --prefer-dist --no-interaction --no-suggest
1920

20-
phpunit:
21-
name: phpunit
22-
runs-on: ubuntu-latest
23-
strategy:
24-
fail-fast: false
25-
matrix:
26-
php_version:
27-
- 7.4
28-
- 8.0
29-
- 8.1
30-
perfer:
31-
- stable
32-
steps:
33-
- uses: actions/checkout@master
34-
- name: Install Dependencies
35-
run: composer install --prefer-dist --no-interaction --no-suggest
36-
- name: Run PHPUnit
37-
run: ./vendor/bin/phpunit
38-
39-
L6_test:
40-
name: L6_test
41-
runs-on: ubuntu-latest
42-
strategy:
43-
fail-fast: false
44-
matrix:
45-
php_version:
46-
- 7.4
47-
perfer:
48-
- stable
49-
steps:
50-
- uses: actions/checkout@master
51-
- name: Install laravel/framework:^6.0
52-
run: composer require "laravel/framework:^6.0"
53-
- name: Install Dependencies
54-
run: composer install --prefer-dist --no-interaction --no-suggest
55-
- name: Laravel Version
56-
run: cat vendor/laravel/framework/src/Illuminate/Foundation/Application.php | grep "const VERSION"
57-
- name: Run PHPUnit
58-
run: composer test
21+
phpunit:
22+
name: phpunit
23+
runs-on: ubuntu-latest
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
php_version:
28+
- 8.0
29+
- 8.1
30+
perfer:
31+
- stable
32+
steps:
33+
- uses: actions/checkout@master
34+
- name: Install Dependencies
35+
run: composer install --prefer-dist --no-interaction --no-suggest
36+
- name: Run PHPUnit
37+
run: ./vendor/bin/phpunit

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"friendsofphp/php-cs-fixer": "^3.0",
1717
"orchestra/testbench": "^7.0",
1818
"mockery/mockery": "^1.4",
19-
"phpunit/phpunit": "^9.5"
19+
"phpunit/phpunit": "^9.5",
20+
"brainmaestro/composer-git-hooks": "dev-master"
2021
},
2122
"autoload": {
2223
"psr-4": {

0 commit comments

Comments
 (0)