Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 8566bca

Browse files
authored
Merge pull request #11 from elbgoods/laravel-7
Laravel 7
2 parents 0e34850 + 90b3a05 commit 8566bca

File tree

8 files changed

+66
-25
lines changed

8 files changed

+66
-25
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: normalize composer.json
2+
3+
on:
4+
push:
5+
paths:
6+
- 'composer.json'
7+
8+
jobs:
9+
normalize:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Git checkout
13+
uses: actions/checkout@v2
14+
15+
- name: normalize composer.json
16+
run: |
17+
composer global require ergebnis/composer-normalize
18+
composer normalize
19+
20+
- uses: stefanzweifel/git-auto-commit-action@v4.0.0
21+
with:
22+
commit_message: normalize composer.json

.github/workflows/run-tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest]
1212
php: [7.4]
13-
laravel: [6.*]
13+
laravel: [7.*, 6.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
15+
include:
16+
- laravel: 7.*
17+
testbench: 5.*
18+
- laravel: 6.*
19+
testbench: 4.*
1520

1621
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
1722

@@ -34,7 +39,7 @@ jobs:
3439
3540
- name: Install dependencies
3641
run: |
37-
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
42+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
3843
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
3944
4045
- name: phpunit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/vendor/
2+
/vendor-bin/**/vendor
23
/composer.lock
34
/phpunit.xml

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this package will be documented in this file.
44

5+
## v0.6.0
6+
7+
* add Laravel 7 support
8+
59
## v0.5.0
610

711
* upgrade `astrotomic/laravel-guzzle` to v2.0.0

composer.json

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,24 @@
1919
],
2020
"require": {
2121
"php": "^7.4",
22-
"astrotomic/laravel-guzzle": "^2.0",
23-
"illuminate/cache": "^6.0",
24-
"illuminate/support": "^6.0"
22+
"astrotomic/laravel-guzzle": "^2.1",
23+
"illuminate/cache": "^6.0 || ^7.0",
24+
"illuminate/support": "^6.0 || ^7.0"
2525
},
2626
"require-dev": {
27-
"codedungeon/phpunit-result-printer": "^0.26.2",
28-
"elbgoods/ci-test-tools": "^1.5.1",
29-
"nunomaduro/collision": "^3.0",
30-
"orchestra/testbench": "^4.0",
31-
"phpunit/phpunit": "^8.0"
27+
"bamarni/composer-bin-plugin": "^1.3",
28+
"orchestra/testbench": "^4.0 || ^5.0",
29+
"phpunit/phpunit": "^8.0 || ^9.0"
30+
},
31+
"config": {
32+
"sort-packages": true
33+
},
34+
"extra": {
35+
"laravel": {
36+
"providers": [
37+
"Elbgoods\\TrashmailRule\\TrashmailRuleServiceProvider"
38+
]
39+
}
3240
},
3341
"autoload": {
3442
"psr-4": {
@@ -40,14 +48,14 @@
4048
"Elbgoods\\TrashmailRule\\Tests\\": "tests"
4149
}
4250
},
43-
"config": {
44-
"sort-packages": true
45-
},
46-
"extra": {
47-
"laravel": {
48-
"providers": [
49-
"Elbgoods\\TrashmailRule\\TrashmailRuleServiceProvider"
50-
]
51-
}
51+
"minimum-stability": "dev",
52+
"prefer-stable": true,
53+
"scripts": {
54+
"post-install-cmd": [
55+
"@composer bin all install --ansi"
56+
],
57+
"post-update-cmd": [
58+
"@composer bin all update --ansi"
59+
]
5260
}
5361
}

phpstan.neon.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
includes:
2-
- ./vendor/nunomaduro/larastan/extension.neon
3-
- ./vendor/elbgoods/ci-test-tools/configs/phpstan.neon.dist
2+
- ./vendor-bin/elbgoods/vendor/nunomaduro/larastan/extension.neon
3+
- ./vendor-bin/elbgoods/vendor/elbgoods/ci-test-tools/configs/phpstan.neon.dist
44

55
parameters:
66
paths:

phpunit.xml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
convertWarningsToExceptions="true"
1111
processIsolation="false"
1212
stopOnFailure="false"
13-
printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer"
1413
>
1514
<testsuites>
1615
<testsuite name="TestSuite">
@@ -22,9 +21,6 @@
2221
<directory suffix=".php">./src</directory>
2322
</whitelist>
2423
</filter>
25-
<listeners>
26-
<listener class="NunoMaduro\Collision\Adapters\Phpunit\Listener" />
27-
</listeners>
2824
<php>
2925
<env name="CACHE_DRIVER" value="file"/>
3026
</php>

vendor-bin/elbgoods/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"elbgoods/ci-test-tools": "^1.7"
4+
}
5+
}

0 commit comments

Comments
 (0)