-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from RingierIMU/feature/support-laravel-6
Add support for laravel 6
- Loading branch information
Showing
14 changed files
with
182 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{*.js,*.json}] | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
* text=auto eol=lf whitespace=tab-in-indent,blank-at-eol,tabwidth=4 | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.styleci.yml export-ignore | ||
/tests export-ignore | ||
/.travis.yml export-ignore | ||
*.eot binary | ||
*.gif binary | ||
*.jpeg binary | ||
*.jpg binary | ||
*.pdf binary | ||
*.png binary | ||
*.svg binary | ||
*.ttf binary | ||
*.woff binary | ||
*.woff2 binary | ||
*.zip binary | ||
*.tgz binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php: [7.2, 7.3, 7.4] | ||
setup: [basic, stable, lowest] | ||
exclude: | ||
- php: 7.4 | ||
setup: lowest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: ${{matrix.php}} | ||
|
||
- name: Get Composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache Composer dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
# Use composer.json for key, if composer.lock is not committed. | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install Composer dependencies | ||
run: | | ||
if [[ ${{matrix.setup}} = 'basic' ]]; then composer install --prefer-dist --no-interaction --no-suggest; fi | ||
if [[ ${{matrix.setup}} = 'stable' ]]; then composer update --prefer-dist --no-interaction --no-suggest --prefer-stable; fi | ||
if [[ ${{matrix.setup}} = 'lowest' ]]; then composer update --prefer-dist --no-interaction --no-suggest --prefer-lowest --prefer-stable; fi | ||
- name: Run PHPUnit tests | ||
run: | | ||
vendor/bin/phpunit --testdox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
vendor/ | ||
composer.lock | ||
.idea/ | ||
/composer.lock | ||
/.idea/ | ||
/.phpunit.result.cache | ||
/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,57 @@ | ||
{ | ||
"name": "ringierimu/state-workflow", | ||
"type": "library", | ||
"description": "State Management workflow for Laravel", | ||
"keywords": [ | ||
"workflow", | ||
"state management", | ||
"laravel" | ||
], | ||
"homepage": "https://github.com/RingierIMU/state-workflow", | ||
"keywords": ["workflow","state management","laravel"], | ||
"type": "library", | ||
"license": "MIT", | ||
"require": { | ||
"php": ">=5.6.4", | ||
"symfony/workflow": "^3.3 || ^4.0 || ^4.1", | ||
"illuminate/support": "^5.3 || ^5.4 || ^5.5 || ^5.6 || ^5.7", | ||
"symfony/event-dispatcher": "^3.3 || ^4.0 || ^4.2", | ||
"illuminate/events": "^5.3 || ^5.4 || ^5.5 || ^5.6 || ^5.7" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Norby Baruani", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
} | ||
], | ||
"autoload": { | ||
"classmap": [ | ||
"tests/Fixtures/database/factories" | ||
], | ||
"psr-4": { | ||
"Ringierimu\\StateWorkflow\\": "src/" | ||
} | ||
"require": { | ||
"php": ">=7.1.3", | ||
"illuminate/events": "^5.6 || ^6.0", | ||
"illuminate/support": "^5.6 || ^6.0", | ||
"symfony/event-dispatcher": "^3.4 || ^4.0", | ||
"symfony/workflow": "^3.4 || ^4.0" | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Tests\\": "tests/" | ||
} | ||
"require-dev": { | ||
"funkjedi/composer-include-files": "^1.0", | ||
"mockery/mockery": "^1.3", | ||
"orchestra/database": "^3.5 || ^4.0", | ||
"orchestra/testbench": "^3.6 || ^4.0", | ||
"phpunit/phpunit": "^6.0 || ^7.0 || ^8.0" | ||
}, | ||
"extra": { | ||
"include_files": [ | ||
"tests/Fixtures/Helpers.php" | ||
], | ||
"laravel": { | ||
"providers": [ | ||
"Ringierimu\\StateWorkflow\\StateWorkflowServiceProvider" | ||
] | ||
} | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Ringierimu\\StateWorkflow\\": "src/" | ||
}, | ||
"include_files": [ | ||
"tests/Fixtures/Helpers.php" | ||
"classmap": [ | ||
"tests/Fixtures/database/factories" | ||
] | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^6.0 || ^7.0", | ||
"orchestra/testbench": "^3.7", | ||
"funkjedi/composer-include-files": "^1.0" | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Ringierimu\\StateWorkflow\\Tests\\": "tests/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters