-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade php-humanizer to the latest standards (#122)
* Library dependencies upgrade & cleanup * Fixed static analyze errors * Aeon php integration * Removed travis configuration * Fixed missing phive keys
- Loading branch information
1 parent
da1bbcf
commit 2d045f4
Showing
79 changed files
with
3,978 additions
and
1,013 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,11 @@ | ||
*.php text eol=lf | ||
*.phpt text eol=lf | ||
/composer.lock export-ignore | ||
/.github/ export-ignore | ||
/.phive/ export-ignore | ||
/tests export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.php_cs export-ignore | ||
/phpstan.neon export-ignore | ||
/phpunit.xml export-ignore |
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,33 @@ | ||
<!-- Bellow section will be used to automatically generate changelog, please do not modify HTML code structure --> | ||
<h2>Change Log</h2> | ||
<div id="change-log"> | ||
<h4>Added</h4> | ||
<ul id="added"> | ||
<!-- <li>Feature making everything better</li> --> | ||
</ul> | ||
<h4>Fixed</h4> | ||
<ul id="fixed"> | ||
<!-- <li>Behavior that was incorrect</li> --> | ||
</ul> | ||
<h4>Changed</h4> | ||
<ul id="changed"> | ||
<!-- <li>Something into something new</li> --> | ||
</ul> | ||
<h4>Removed</h4> | ||
<ul id="removed"> | ||
<!-- <li>Something</li> --> | ||
</ul> | ||
<h4>Deprecated</h4> | ||
<ul id="deprecated"> | ||
<!-- <li>Something is from now deprecated</li> --> | ||
</ul> | ||
<h4>Security</h4> | ||
<ul id="security"> | ||
<!-- <li>Something that was security issue, is not an issue anymore</li> --> | ||
</ul> | ||
</div> | ||
<hr/> | ||
|
||
<h2>Description</h2> | ||
|
||
<!-- Please provide a shore description of changes in this section, feel free to use markdown syntax --> |
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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "composer" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,31 @@ | ||
name: "Changelog - Release Unreleased" | ||
|
||
################################################################### | ||
# WARNING - THIS ACTION WILL PUSH COMMIT DIRECTLY INTO REPOSITORY # | ||
################################################################### | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
changelog-release-unreleased: | ||
name: "Update Changelog - Release Unreleased" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Get tag name" | ||
id: "tag-name" | ||
run: | | ||
tag=$(echo ${{ github.event.ref }} | cut -c11-) | ||
echo "::set-output name=tag::$tag" | ||
- name: "Update CHANGELOG" | ||
uses: "docker://aeonphp/automation:latest" | ||
env: | ||
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
entrypoint: "/composer/vendor/bin/automation" | ||
args: "changelog:release:unreleased ${{ github.repository }} CHANGELOG.md ${{ steps.tag-name.outputs.tag }} --github-file-changelog-update" |
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,38 @@ | ||
name: "Changelog - Update Unreleased" | ||
|
||
################################################################### | ||
# WARNING - THIS ACTION WILL PUSH COMMIT DIRECTLY INTO REPOSITORY # | ||
################################################################### | ||
|
||
on: | ||
push: | ||
branches: | ||
- 6.x | ||
|
||
jobs: | ||
changelog-update-unreleased: | ||
name: "Changelog - Update Unreleased" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Restore Automation cache" | ||
uses: "actions/cache@v2" | ||
with: | ||
path: | | ||
cache | ||
key: "${{ runner.os }}-automation-${{ hashFiles('**/CHANGELOG.md') }}" | ||
restore-keys: | | ||
${{ runner.os }}-automation- | ||
- name: "Update CHANGELOG" | ||
uses: "docker://aeonphp/automation:latest" | ||
env: | ||
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
EON_AUTOMATION_CACHE_DIR: "/github/workspace/cache" | ||
with: | ||
entrypoint: "/composer/vendor/bin/automation" | ||
args: "changelog:generate ${{ github.repository }} --github-file-update-path=CHANGELOG.md --skip-from=\"dependabot[bot]\" --skip-from=\"aeon-automation\"" |
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,20 @@ | ||
name: "Pull Request Description Check" | ||
|
||
on: | ||
pull_request: | ||
types: ["opened", "edited", "reopened", "ready_for_review"] | ||
|
||
jobs: | ||
pull-request-description-check: | ||
name: "Pull Request Description" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Pull Request Description - Check" | ||
uses: "docker://aeonphp/automation:latest" | ||
env: | ||
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
entrypoint: "/composer/vendor/bin/automation" | ||
args: "pull-request:description:check ${{ github.repository }} ${{ github.event.pull_request.number }} --skip-from=\"dependabot[bot]\"" |
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,25 @@ | ||
name: "Release - Description Update" | ||
|
||
######################################################### | ||
# WARNING - THIS ACTION WILL UPDATE RELEASE DESCRIPTION # | ||
######################################################### | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
release-description-update: | ||
name: "Release - Description Update" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Update CHANGELOG" | ||
uses: "docker://aeonphp/automation:latest" | ||
env: | ||
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
entrypoint: "/composer/vendor/bin/automation" | ||
args: "changelog:generate ${{ github.repository }} --tag=${{ github.event.release.tag_name }} --github-release-update --skip-from=\"dependabot[bot]\" --skip-from=\"aeon-automation\"" |
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,77 @@ | ||
name: "Static Analyze" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "4.x" | ||
schedule: | ||
- cron: '* 8 * * *' | ||
|
||
jobs: | ||
compatibility: | ||
name: "Static Analyze" | ||
|
||
runs-on: ${{ matrix.operating-system }} | ||
|
||
strategy: | ||
matrix: | ||
dependencies: | ||
- "locked" | ||
php-version: | ||
- "7.4" | ||
operating-system: | ||
- "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "pcov" | ||
php-version: "${{ matrix.php-version }}" | ||
ini-values: memory_limit=-1 | ||
tools: phive, composer:v2 | ||
|
||
- name: "Cache Phive dependencies" | ||
uses: "actions/cache@v2" | ||
with: | ||
path: | | ||
~/.phive | ||
key: "${{ runner.os }}-phive-${{ hashFiles('**/phars.xml') }}" | ||
restore-keys: | | ||
${{ runner.os }}-phive- | ||
- 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 }} | ||
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}" | ||
restore-keys: | | ||
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer- | ||
- name: "Install tools" | ||
run: "phive install --trust-gpg-keys E82B2FB314E9906E,CF1A108D0E7AE720,8A03EA3B385DBAA1,12CE0F1D262429A5 --force-accept-unsigned" | ||
|
||
- name: "Install lowest dependencies" | ||
if: ${{ matrix.dependencies == 'lowest' }} | ||
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install highest dependencies" | ||
if: ${{ matrix.dependencies == 'highest' }} | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install locked dependencies" | ||
if: ${{ matrix.dependencies == 'locked' }} | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Static Analyze" | ||
run: "composer static:analyze" |
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,80 @@ | ||
name: "Tests" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "4.x" | ||
schedule: | ||
- cron: '* 8 * * *' | ||
|
||
jobs: | ||
compatibility: | ||
name: "Tests" | ||
|
||
runs-on: ${{ matrix.operating-system }} | ||
|
||
strategy: | ||
matrix: | ||
dependencies: | ||
- "locked" | ||
- "lowest" | ||
- "highest" | ||
php-version: | ||
- "7.4" | ||
- "8.0" | ||
operating-system: | ||
- "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "pcov" | ||
php-version: "${{ matrix.php-version }}" | ||
ini-values: memory_limit=-1 | ||
tools: phive, composer:v2 | ||
|
||
- name: "Cache Phive dependencies" | ||
uses: "actions/cache@v2" | ||
with: | ||
path: | | ||
~/.phive | ||
key: "${{ runner.os }}-phive-${{ hashFiles('**/phars.xml') }}" | ||
restore-keys: | | ||
${{ runner.os }}-phive- | ||
- 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 }} | ||
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}" | ||
restore-keys: | | ||
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer- | ||
- name: "Install tools" | ||
run: "phive install --trust-gpg-keys E82B2FB314E9906E,CF1A108D0E7AE720,8A03EA3B385DBAA1,12CE0F1D262429A5 --force-accept-unsigned" | ||
|
||
- name: "Install lowest dependencies" | ||
if: ${{ matrix.dependencies == 'lowest' }} | ||
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install highest dependencies" | ||
if: ${{ matrix.dependencies == 'highest' }} | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install locked dependencies" | ||
if: ${{ matrix.dependencies == 'locked' }} | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Tests" | ||
run: "composer test" |
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,4 @@ | ||
vendor/ | ||
bin/ | ||
composer.lock | ||
composer.phar | ||
*.cache | ||
var/ | ||
tools/ |
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="php-cs-fixer" version="^2.16.4" installed="2.16.4" location="./tools/php-cs-fixer" copy="true"/> | ||
<phar name="phpstan" version="^0.12.32" installed="0.12.52" location="./tools/phpstan" copy="true"/> | ||
<phar name="psalm" version="^3.12.2" installed="3.18.2" location="./tools/psalm" copy="true"/> | ||
</phive> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.