-
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.
* format via php-cs-fixer * add unit tests with the lowest possible dependencies * add unit tests with php 8.2 and 8.3 * add integration tests for 2023.1 antelope and yoga * allow skipping integration, unit or both tests in pull requests --------- Co-authored-by: k0ka <[email protected]>
- Loading branch information
Showing
87 changed files
with
229 additions
and
631 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.1 | ||
|
||
- 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
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 |
---|---|---|
@@ -1,54 +1,67 @@ | ||
{ | ||
"name": "php-opencloud/openstack", | ||
"description": "PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi", | ||
"license": "Apache-2.0", | ||
"keywords": [ | ||
"php", | ||
"openstack", | ||
"api", | ||
"sdk" | ||
], | ||
"homepage": "https://github.com/php-opencloud/openstack", | ||
"license": "Apache-2.0", | ||
"authors": [ | ||
{ | ||
"name": "Jamie Hannaford", | ||
"email": "[email protected]", | ||
"homepage" : "https://github.com/jamiehannaford" | ||
"homepage": "https://github.com/jamiehannaford" | ||
}, | ||
{ | ||
"name": "Ha Phan", | ||
"email": "[email protected]", | ||
"homepage" : "https://github.com/haphan" | ||
"homepage": "https://github.com/haphan" | ||
}, | ||
{ | ||
"name": "Konstantin Babushkin", | ||
"email": "[email protected]", | ||
"homepage": "https://github.com/k0ka" | ||
} | ||
], | ||
"homepage": "https://github.com/php-opencloud/openstack", | ||
"require": { | ||
"php": "^7.2.5 || ^8.0", | ||
"guzzlehttp/guzzle": "^7.0", | ||
"guzzlehttp/psr7": ">=1.7", | ||
"guzzlehttp/uri-template": "^0.2 || ^1.0", | ||
"justinrainbow/json-schema": "^5.2" | ||
}, | ||
"require-dev": { | ||
"ergebnis/composer-normalize": "^2.0", | ||
"friendsofphp/php-cs-fixer": "^3", | ||
"php-coveralls/php-coveralls": "^2.0", | ||
"php-parallel-lint/php-parallel-lint": "^1.2", | ||
"phpspec/prophecy": "^1.17", | ||
"phpunit/phpunit": ">=8.5.23 <9.0", | ||
"psr/log": "^1.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"OpenStack\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"OpenStack\\Test\\": "tests/unit/", | ||
"OpenStack\\Integration\\": "tests/integration/" | ||
"OpenStack\\Integration\\": "tests/integration/", | ||
"OpenStack\\Test\\": "tests/unit/" | ||
} | ||
}, | ||
"require": { | ||
"php": "^7.2.5|^8.0", | ||
"guzzlehttp/guzzle": "^7.0", | ||
"guzzlehttp/uri-template": "^0.2|^1.0", | ||
"justinrainbow/json-schema": "^5.2" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^8.0", | ||
"psr/log": "^1.0", | ||
"php-coveralls/php-coveralls": "^2.0", | ||
"friendsofphp/php-cs-fixer": "^2.18", | ||
"php-parallel-lint/php-parallel-lint": "^1.2", | ||
"phpspec/prophecy": "^1.17" | ||
"config": { | ||
"allow-plugins": { | ||
"ergebnis/composer-normalize": true | ||
}, | ||
"sort-packages": true | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "3.0-dev" | ||
"dev-master": "3.0-dev" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ | |
|
||
class Api extends \OpenStack\BlockStorage\v2\Api | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.