-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major bug fixes and improvements (#11)
* Github actions (#9) Removed PHPLint Removed CircleCI config Added GitHub actions with multiple PHP version build check Added namespace for Tests, at the moment the tests are with the same namespace as the source. * Namespace fix (#10) - Replaced namespaces and folder structure for the entire package. - Removed direct composer autoload from files. (no idea why autoloader was directly loaded) * added test for mappers and fix for misspelt lastUpdateTimestam to lastUpdateTimestamp * updated namespaces on README.md * spelling mistake fix on autoload * clean up * phpcs clean up * phpcs PSR12 clean up * code clean up * fix for mapping issue * added phpcs and style clean up * fixed market holiday url and readme doc * upgraded guzzle to 7.2 * added minimum php requirement to v7.2.5 * depricated public properties will be removed in next major version * seperated test concerns * moved rest to Rest * Delete tests/rest directory * added circlici back * removed composer.lock * Update php.yml Updated branch * Update php.yml Added master branch to run configuration
- Loading branch information
1 parent
0332465
commit f86dfc7
Showing
171 changed files
with
5,112 additions
and
5,224 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
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,46 @@ | ||
name: PHP Composer | ||
|
||
on: | ||
push: | ||
branches: [ develop, master ] | ||
pull_request: | ||
branches: [ develop, master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ['7.2', '7.3', '7.4', '8.0'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP ${{ matrix.php-versions }} with tools | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: phan, phpunit | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
# | ||
# - name: Run linter | ||
# run: composer lint | ||
|
||
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | ||
# Docs: https://getcomposer.org/doc/articles/scripts.md | ||
|
||
- name: Run test suite | ||
run: composer test |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,19 +7,34 @@ | |
{ | ||
"name": "Julien Prugne", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Ersin Demirtas", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"guzzlehttp/guzzle": "^6.4", | ||
"amphp/websocket-client": "^0.2.4" | ||
"php":">=7.2.5", | ||
"ext-json": "*", | ||
"guzzlehttp/guzzle": "^7.2.0", | ||
"amphp/websocket-client": "^0.2.4", | ||
"psr/http-client": "^1.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^8", | ||
"squizlabs/php_codesniffer": "^3.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"PolygonIO\\": "src/" | ||
} | ||
}, | ||
"require-dev": { | ||
"overtrue/phplint": "^1.1", | ||
"phpunit/phpunit": "^8" | ||
"autoload-dev": { | ||
"psr-4": { | ||
"PolygonIO\\Tests\\": "tests/" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "./vendor/bin/phpunit" | ||
} | ||
} |
Oops, something went wrong.