Skip to content

Commit

Permalink
Merge pull request #11 from elbgoods/laravel-7
Browse files Browse the repository at this point in the history
Laravel 7
  • Loading branch information
Gummibeer authored Mar 3, 2020
2 parents 0e34850 + 90b3a05 commit 8566bca
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 25 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/composer-normalize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: normalize composer.json

on:
push:
paths:
- 'composer.json'

jobs:
normalize:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2

- name: normalize composer.json
run: |
composer global require ergebnis/composer-normalize
composer normalize
- uses: stefanzweifel/[email protected]
with:
commit_message: normalize composer.json
9 changes: 7 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [7.4]
laravel: [6.*]
laravel: [7.*, 6.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 7.*
testbench: 5.*
- laravel: 6.*
testbench: 4.*

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

Expand All @@ -34,7 +39,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: phpunit
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/vendor/
/vendor-bin/**/vendor
/composer.lock
/phpunit.xml
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## v0.6.0

* add Laravel 7 support

## v0.5.0

* upgrade `astrotomic/laravel-guzzle` to v2.0.0
Expand Down
42 changes: 25 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,24 @@
],
"require": {
"php": "^7.4",
"astrotomic/laravel-guzzle": "^2.0",
"illuminate/cache": "^6.0",
"illuminate/support": "^6.0"
"astrotomic/laravel-guzzle": "^2.1",
"illuminate/cache": "^6.0 || ^7.0",
"illuminate/support": "^6.0 || ^7.0"
},
"require-dev": {
"codedungeon/phpunit-result-printer": "^0.26.2",
"elbgoods/ci-test-tools": "^1.5.1",
"nunomaduro/collision": "^3.0",
"orchestra/testbench": "^4.0",
"phpunit/phpunit": "^8.0"
"bamarni/composer-bin-plugin": "^1.3",
"orchestra/testbench": "^4.0 || ^5.0",
"phpunit/phpunit": "^8.0 || ^9.0"
},
"config": {
"sort-packages": true
},
"extra": {
"laravel": {
"providers": [
"Elbgoods\\TrashmailRule\\TrashmailRuleServiceProvider"
]
}
},
"autoload": {
"psr-4": {
Expand All @@ -40,14 +48,14 @@
"Elbgoods\\TrashmailRule\\Tests\\": "tests"
}
},
"config": {
"sort-packages": true
},
"extra": {
"laravel": {
"providers": [
"Elbgoods\\TrashmailRule\\TrashmailRuleServiceProvider"
]
}
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-install-cmd": [
"@composer bin all install --ansi"
],
"post-update-cmd": [
"@composer bin all update --ansi"
]
}
}
4 changes: 2 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
includes:
- ./vendor/nunomaduro/larastan/extension.neon
- ./vendor/elbgoods/ci-test-tools/configs/phpstan.neon.dist
- ./vendor-bin/elbgoods/vendor/nunomaduro/larastan/extension.neon
- ./vendor-bin/elbgoods/vendor/elbgoods/ci-test-tools/configs/phpstan.neon.dist

parameters:
paths:
Expand Down
4 changes: 0 additions & 4 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer"
>
<testsuites>
<testsuite name="TestSuite">
Expand All @@ -22,9 +21,6 @@
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<listeners>
<listener class="NunoMaduro\Collision\Adapters\Phpunit\Listener" />
</listeners>
<php>
<env name="CACHE_DRIVER" value="file"/>
</php>
Expand Down
5 changes: 5 additions & 0 deletions vendor-bin/elbgoods/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"elbgoods/ci-test-tools": "^1.7"
}
}

0 comments on commit 8566bca

Please sign in to comment.