-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add more unit tests and integration tests
- add format.yml
- Loading branch information
Showing
4 changed files
with
78 additions
and
6 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,50 @@ | ||
name: "Format" | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
composer-normalize: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
extensions: mbstring | ||
php-version: 8.2 | ||
|
||
- run: composer install --no-interaction --no-progress --no-suggest | ||
|
||
- run: composer normalize | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Normalize composer.json | ||
|
||
php-cs-fixer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
extensions: mbstring | ||
php-version: 8.2 | ||
|
||
- run: composer install --no-interaction --no-progress --no-suggest | ||
|
||
- run: vendor/bin/php-cs-fixer fix | ||
|
||
- run: git pull | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Apply php-cs-fixer changes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,11 @@ | |
"name": "Ha Phan", | ||
"email": "[email protected]", | ||
"homepage" : "https://github.com/haphan" | ||
}, | ||
{ | ||
"name": "Konstantin Babushkin", | ||
"email": "[email protected]", | ||
"homepage" : "https://github.com/k0ka" | ||
} | ||
], | ||
"autoload": { | ||
|
@@ -42,7 +47,7 @@ | |
"phpunit/phpunit": "^8.0", | ||
"psr/log": "^1.0", | ||
"php-coveralls/php-coveralls": "^2.0", | ||
"friendsofphp/php-cs-fixer": "^2.18", | ||
"friendsofphp/php-cs-fixer": "^3", | ||
"php-parallel-lint/php-parallel-lint": "^1.2", | ||
"phpspec/prophecy": "^1.17" | ||
}, | ||
|