-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from eclipxe13/maintenante-20220715
Mantenimiento 2022-06-15 (versión 0.2.1)
- Loading branch information
Showing
36 changed files
with
147 additions
and
117 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
Validating CODEOWNERS rules …
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,2 +1,2 @@ | ||
# see https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners | ||
/.github/* @phpcfdi/core-mantainers | ||
/.github/* @phpcfdi/core-maintainers |
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,99 +1,106 @@ | ||
name: build | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
branches: [ "main" ] | ||
push: | ||
branches: [ main ] | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '0 16 * * 0' # sunday 16:00 | ||
|
||
jobs: | ||
|
||
ci: # this job runs all the development tools | ||
# Actions | ||
# shivammathur/setup-php@v2 https://github.com/marketplace/actions/setup-php-action | ||
|
||
name: PHP 8.0 (full) | ||
jobs: | ||
phpcs: | ||
name: Coding standards (phpcs) | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
coverage: none | ||
tools: cs2pr, phpcs | ||
env: | ||
fail-fast: true | ||
- name: Run phpcs | ||
run: phpcs -q --report=checkstyle | cs2pr | ||
|
||
# see https://github.com/marketplace/actions/setup-php-action | ||
php-cs-fixer: | ||
name: Coding standards (php-cs-fixer) | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
extensions: bcmath, openssl, soap | ||
php-version: '8.1' | ||
coverage: none | ||
tools: composer:v2, phpcs, php-cs-fixer, phpstan, cs2pr | ||
tools: cs2pr, php-cs-fixer | ||
env: | ||
fail-fast: true | ||
- name: Run php-cs-fixer | ||
run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr | ||
|
||
phpunit: | ||
name: Tests on PHP ${{ matrix.php-versions }} (phpunit) | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
php-versions: ['7.4', '8.0', '8.1'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: sqlite3 | ||
coverage: none | ||
tools: composer:v2 | ||
env: | ||
fail-fast: true | ||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install project dependencies | ||
run: composer upgrade --no-interaction --no-progress --prefer-dist | ||
|
||
- name: Code style (phpcs) | ||
run: phpcs -q --report=checkstyle | cs2pr | ||
|
||
- name: Code style (php-cs-fixer) | ||
run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr | ||
|
||
- name: Tests | ||
- name: Run phpunit | ||
run: vendor/bin/phpunit --testdox --verbose | ||
|
||
- name: Code analysis (phpstan) | ||
run: phpstan analyse --no-progress --verbose | ||
|
||
build: # this job runs tests on all php supported versions | ||
|
||
name: PHP ${{ matrix.php-versions }} (tests) | ||
phpstan: | ||
name: Static analysis (phpstan) | ||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-versions: ['7.4'] | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# see https://github.com/marketplace/actions/setup-php-action | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: bcmath, openssl, soap | ||
php-version: '8.1' | ||
coverage: none | ||
tools: composer:v2, cs2pr | ||
tools: composer:v2, phpstan | ||
env: | ||
fail-fast: true | ||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install project dependencies | ||
run: composer upgrade --no-interaction --no-progress --prefer-dist | ||
|
||
- name: Tests | ||
run: vendor/bin/phpunit --testdox --verbose | ||
- name: Run phpstan | ||
run: phpstan analyse --no-progress --verbose |
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,8 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="php-cs-fixer" version="^3.1.0" installed="3.1.0" location="./tools/php-cs-fixer" copy="false"/> | ||
<phar name="phpcs" version="^3.6.0" installed="3.6.0" location="./tools/phpcs" copy="false"/> | ||
<phar name="phpcbf" version="^3.6.0" installed="3.6.0" location="./tools/phpcbf" copy="false"/> | ||
<phar name="phpstan" version="^0.12.98" installed="0.12.98" location="./tools/phpstan" copy="false"/> | ||
<phar name="infection" version="^0.23.0" installed="0.23.0" location="./tools/infection" copy="false"/> | ||
<phar name="php-cs-fixer" version="^3.9.4" installed="3.9.4" location="./tools/php-cs-fixer" copy="false"/> | ||
<phar name="phpcs" version="^3.7.1" installed="3.7.1" location="./tools/phpcs" copy="false"/> | ||
<phar name="phpcbf" version="^3.7.1" installed="3.7.1" location="./tools/phpcbf" copy="false"/> | ||
<phar name="phpstan" version="^1.8.1" installed="1.8.1" location="./tools/phpstan" copy="false"/> | ||
</phive> |
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
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
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.