-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The library now fully supports PHP 8.0 and min PHP version now bumped…
… to PHP 7.3+,. Updated docblocks where was previously using my previous GitHub username. phpunit test cases and xml manifest now fully compatible with PHPUnit 9. README file explains how to install older versions of this lib to support older PHP versions. CI is now using GitHub Actions instead of TravisCI.
- Loading branch information
Showing
11 changed files
with
1,369 additions
and
419 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,69 @@ | ||
name: build | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build-test: | ||
name: Collection (PHP ${{ matrix.php-versions }}) | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-versions: [ '7.3', '7.4', '8.0' ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP, with composer and extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: xdebug | ||
|
||
- 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@v2 | ||
# 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: composer install --no-progress --prefer-dist --optimize-autoloader | ||
|
||
#- name: PHPUnit Tests | ||
# uses: php-actions/phpunit@v1 | ||
# with: | ||
# bootstrap: vendor/autoload.php | ||
# configuration: phpunit.xml | ||
# args: --coverage-text | ||
# memory_limit: 256M | ||
|
||
- name: PHPUnit Tests | ||
run: vendor/bin/phpunit --coverage-clover=coverage.xml | ||
|
||
- name: Upload code coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.xml | ||
flags: tests | ||
name: codedev-umbrella | ||
yml: ./codedev.yml | ||
fail_ci_if_error: true | ||
|
||
# For code coverage report we are uploading our code coverage report to scrutinizer | ||
- name: Downloading scrutinizer ocular.phar | ||
run: wget https://scrutinizer-ci.com/ocular.phar | ||
|
||
# Uploading reports for analysis | ||
- name: Uploading code coverage to scrutinize | ||
continue-on-error: true | ||
run: php ocular.phar code-coverage:upload --format=php-clover coverage.xml |
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,4 +4,5 @@ | |
/report | ||
composer.phar | ||
.DS_Store | ||
Thumbs.db | ||
Thumbs.db | ||
.phpunit.result.cache |
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 |
---|---|---|
@@ -1,26 +1,31 @@ | ||
{ | ||
"name": "ballen/collection", | ||
"description": "A Collection library which provides OOP replacement for the traditional array data structure.", | ||
"type": "library", | ||
"keywords": ["collection", "list", "array"], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Bobby Allen", | ||
"email": "[email protected]", | ||
"homepage": "http://bobbyallen.me", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.3.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "4.8.*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Ballen\\Collection\\": "lib/" | ||
} | ||
"name": "ballen/collection", | ||
"description": "A Collection library which provides OOP replacement for the traditional array data structure.", | ||
"type": "library", | ||
"keywords": [ | ||
"collection", | ||
"list", | ||
"array" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Bobby Allen", | ||
"email": "[email protected]", | ||
"homepage": "http://bobbyallen.me", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.3.0", | ||
"ext-json": "*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Ballen\\Collection\\": "lib/" | ||
} | ||
} | ||
} |
Oops, something went wrong.