forked from soullivaneuh/composer-versions-check
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f86f69b
commit 80f7424
Showing
16 changed files
with
145 additions
and
153 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 |
---|---|---|
|
@@ -10,3 +10,6 @@ indent_size = 4 | |
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.yml] | ||
indent_size = 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
testsuite: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: ['7.4', '8.2'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: mbstring, intl, bcmath | ||
coverage: pcov | ||
|
||
- name: Composer install | ||
run: | | ||
composer --version | ||
composer install | ||
- name: Run PHPUnit | ||
run: | | ||
if [[ ${{ matrix.php-version }} == '7.4' ]]; then | ||
vendor/bin/phpunit --coverage-clover=coverage.xml | ||
else | ||
vendor/bin/phpunit | ||
fi | ||
- name: Code Coverage Report | ||
if: success() && matrix.php-version == '7.4' | ||
uses: codecov/codecov-action@v1 | ||
|
||
validation: | ||
name: Coding Standard & Static Analysis | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
extensions: mbstring, intl, bcmath | ||
coverage: none | ||
|
||
- name: Composer Install | ||
run: composer install | ||
|
||
- name: Run phpstan | ||
run: composer stan-setup && vendor/bin/phpstan analyse --error-format=github | ||
|
||
- name: Run phpcs | ||
run: composer cs-check | ||
|
||
prefer-lowest: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ | ||
'7.4' | ||
] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: mbstring, intl, bcmath | ||
coverage: none | ||
|
||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Composer cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Composer prefer-lowest | ||
run: | | ||
composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable | ||
- name: Run PHPUnit | ||
run: | | ||
vendor/bin/phpunit |
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,5 +1,5 @@ | ||
/.php_cs.cache | ||
/.phpunit.result.cache | ||
/composer.lock | ||
/vendor | ||
.php_cs.cache | ||
.phpunit.result.cache | ||
composer.lock | ||
vendor/ | ||
*.phar |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,4 @@ | ||
# CHANGELOG | ||
|
||
* 2.0.5 (2021-12-07) | ||
|
||
* PHP 8 support | ||
|
||
* 2.0.4 (2020-05-05) | ||
|
||
* Composer v2 support | ||
|
||
* 2.0.3 (2017-06-16) | ||
|
||
* Fix wrong outdated output on aliased packages. | ||
|
||
* 2.0.2 (2016-04-29) | ||
|
||
* Remove composer compatibility check. | ||
|
||
* 2.0.1 (2016-04-26) | ||
|
||
* Fix `UnexpectedValueException` with `Semver::satisfies` issue | ||
try to update with `--no-plugins` to get this new version. | ||
|
||
* 2.0.0 (2016-04-19) | ||
|
||
* Composer version compatibility check. | ||
* Remove composer BC version compare method. | ||
* Disable `show-links` option by default. | ||
|
||
* 1.1.0 (2016-04-19) | ||
|
||
* More tiny and sexy outdated output words. | ||
* Outdated packages number on output. | ||
* Show outdated packages links if exist. | ||
|
||
* 1.0.2 (2015-10-12) | ||
|
||
* Align output indent to Composer. | ||
* Plugin disabled with --prefer-lowest option. | ||
|
||
* 1.0.1 (2015-10-06) | ||
|
||
* Cross-platform newline character support. | ||
* Fix composer versions without `composer/semver` enabled. | ||
Coming from original `sllh/composer-versions-check` v1 or v2: | ||
- Use this in v1 now. |
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 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
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
Oops, something went wrong.