-
-
Notifications
You must be signed in to change notification settings - Fork 3
Setup project #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
204d8f5
Setup project
XedinUnknown 3761d70
Remove debug output from readme
XedinUnknown 2ca099d
Add test bootstrap
XedinUnknown 0e694c0
Install lowest deps on PHP 5.5 only
XedinUnknown 979e652
Correct paths for PHP linting
XedinUnknown 0fc3519
Use multiline list
XedinUnknown 7144cc0
Build on PHP 5.3 and 5.4 as well
XedinUnknown 3d05564
Allow PHP 5.3
XedinUnknown 2483bc1
Allow PHP 5.3 builds to fail
XedinUnknown 2244ac3
Add reference to original decision
XedinUnknown 27983cb
Add missing flag
XedinUnknown 565ac1f
Fix variable syntax
XedinUnknown dd24382
Fix variable value syntax
XedinUnknown ab60fe5
Revert "Fix variable value syntax"
XedinUnknown fbba893
Add include for all extra variables used
XedinUnknown 8e8af9c
Remove potential var name ambiguity
XedinUnknown 5cba562
Declare PHP 5.3 builds as experimental
XedinUnknown 678efac
Add PHPCS
XedinUnknown 1af7bce
Downgrade PHPCS to 2.x on PHP 5.3
XedinUnknown 98262e4
Downgrading corrected
XedinUnknown 1446ab7
Downgrading corrected further
XedinUnknown 3c85dd6
Downgrading corrected even further
XedinUnknown 7c710dc
Downgrading corrected even further
XedinUnknown 5601586
Do not run PHPCS on PHP 5.3
XedinUnknown e2c8d2c
PHP 5.3 is no longer experimental
XedinUnknown 21c4fba
Correct PHP 5.4 include
XedinUnknown File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,6 @@ | ||
| .gitattributes export-ignore | ||
| .gitignore export-ignore | ||
| composer.lock export-ignore | ||
| phpunit.xml.dist export-ignore | ||
|
|
||
| * text eol=lf |
This file contains hidden or 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,59 @@ | ||
| name: Testing | ||
| on: [push] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| php-versions: | ||
| - 5.3 | ||
| - 5.4 | ||
| - 5.5 | ||
| - 5.6 | ||
| - 7.0 | ||
| - 7.1 | ||
| - 7.2 | ||
| - 7.3 | ||
| - 7.4 | ||
| - 8.0 | ||
| dependency-levels: | ||
| - 'highest' | ||
| experimental: | ||
| - false | ||
| include: | ||
| - php-versions: 5.4 | ||
| dependency-levels: 'lowest' | ||
| experimental: false | ||
| continue-on-error: ${{ matrix.experimental }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Setup PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.php-versions }} | ||
|
|
||
| - name: Validating PHP syntax | ||
| run: find ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l | ||
|
|
||
| - name: Validate composer.json and composer.lock | ||
| run: composer validate | ||
|
|
||
| # Because PHPCS 3 requires PHP 5.4 | ||
| - run: composer require --dev -W squizlabs/php_codesniffer:^2.0 symfony/yaml:^2.0 phpdocumentor/reflection-docblock:^2.0 | ||
| if: matrix.php-versions == '5.3' | ||
|
|
||
| - name: Install dependencies | ||
| uses: ramsey/composer-install@v1 | ||
| with: | ||
| dependency-versions: "${{ matrix.dependency-levels }}" | ||
| composer-options: "--prefer-dist" | ||
|
|
||
| - name: PhpUnit | ||
| run: ./vendor/bin/phpunit | ||
|
|
||
| - name: PHPCS | ||
| run: ./vendor/bin/phpcs -s --report-source --runtime-set ignore_warnings_on_exit 1 | ||
| # Because PHPCS 2 does not have PSR-12 rule | ||
| if: matrix.php-versions != '5.3' | ||
This file contains hidden or 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,8 @@ | ||
| /vendor/ | ||
| /.idea | ||
| /.env | ||
| /.env.example | ||
| /docker/ | ||
| /docker-compose.yml | ||
| /.editorconfig | ||
| /.phpunit.result.cache |
This file contains hidden or 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,13 @@ | ||
| # Change log | ||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
| and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
|
||
| ## [[*next-version*]] - YYYY-MM-DD | ||
| Initial release. This ports the test for and from [`psr/log`][], according to | ||
| [decision][1]. | ||
|
|
||
|
|
||
| [`psr/log`]: https://packagist.org/packages/psr/log | ||
| [1]: https://github.com/php-fig/log/pull/76#issuecomment-858743302 |
This file contains hidden or 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,6 @@ | ||
| # PSR - Log Util | ||
| Utilities for the [`psr/log`][] package that backs the [PSR-3][] specification. | ||
|
|
||
|
|
||
| [`psr/log`]: https://packagist.org/packages/psr/log | ||
| [PSR-3]: https://www.php-fig.org/psr/psr-3/ |
This file contains hidden or 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,36 @@ | ||
| { | ||
| "name": "psr/log-util", | ||
| "description": "Utilities for the psr/log package that backs the PSR-3 specification.", | ||
| "minimum-stability": "dev", | ||
| "license": "MIT", | ||
| "authors": [ | ||
| { | ||
| "name": "PHP-FIG", | ||
| "homepage": "https://www.php-fig.org/", | ||
| "role": "Organisation" | ||
| }, | ||
| { | ||
| "name": "Anton Ukhanev", | ||
| "email": "xedin.unknown@gmail.com", | ||
| "role": "Developer" | ||
| } | ||
| ], | ||
| "require": { | ||
| "php": "^5.3 | ^7.0 | ^8.0", | ||
| "psr/log": "^1.1.4" | ||
| }, | ||
| "require-dev": { | ||
| "phpunit/phpunit": "^4.0 | ^5.0 | ^6.0 | ^7.0 | ^8.0 | ^9.0", | ||
Jean85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "squizlabs/php_codesniffer": "^3.6" | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "Psr\\Log\\Util\\": "src" | ||
| } | ||
| }, | ||
| "autoload-dev": { | ||
| "psr-4": { | ||
| "Psr\\Log\\Util\\Tests\\": "tests" | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.