This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Synchronize with ergebnis/php-library-template
- Loading branch information
1 parent
22ac2a7
commit 6a1c511
Showing
17 changed files
with
237 additions
and
115 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ indent_size = 2 | |
[*.neon] | ||
indent_style = tab | ||
|
||
[*.yml] | ||
[*.yaml] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | ||
|
||
name: "Continuous Integration" | ||
name: "Integrate" | ||
|
||
on: | ||
pull_request: | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: null | ||
push: | ||
branches: | ||
- "master" | ||
|
@@ -29,10 +29,17 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Lint YAML files" | ||
uses: "ibiqlik/action-yamllint@v1" | ||
with: | ||
config_file: ".yamllint.yaml" | ||
file_or_dir: "." | ||
strict: true | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@1.7.3" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "none" | ||
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" | ||
|
@@ -41,22 +48,26 @@ jobs: | |
- name: "Validate composer.json and composer.lock" | ||
run: "composer validate --strict" | ||
|
||
- name: "Determine composer cache directory" | ||
id: "determine-composer-cache-directory" | ||
run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v1.0.3" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: "~/.composer/cache" | ||
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}" | ||
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}" | ||
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" | ||
|
||
- name: "Install lowest dependencies with composer" | ||
- name: "Install lowest dependencies from composer.json" | ||
if: "matrix.dependencies == 'lowest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest" | ||
|
||
- name: "Install locked dependencies with composer" | ||
- name: "Install locked dependencies from composer.lock" | ||
if: "matrix.dependencies == 'locked'" | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install highest dependencies with composer" | ||
- name: "Install highest dependencies from composer.json" | ||
if: "matrix.dependencies == 'highest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
|
@@ -67,7 +78,7 @@ jobs: | |
run: "mkdir -p .build/php-cs-fixer" | ||
|
||
- name: "Cache cache directory for friendsofphp/php-cs-fixer" | ||
uses: "actions/cache@v1.0.3" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: ".build/php-cs-fixer" | ||
key: "php-${{ matrix.php-version }}-php-cs-fixer-${{ hashFiles('**/composer.lock') }}" | ||
|
@@ -94,36 +105,40 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.0.0" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@1.7.3" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "none" | ||
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Determine composer cache directory" | ||
id: "determine-composer-cache-directory" | ||
run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v1.0.3" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: "~/.composer/cache" | ||
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}" | ||
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}" | ||
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" | ||
|
||
- name: "Install lowest dependencies with composer" | ||
- name: "Install lowest dependencies from composer.json" | ||
if: "matrix.dependencies == 'lowest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest" | ||
|
||
- name: "Install locked dependencies with composer" | ||
- name: "Install locked dependencies from composer.lock" | ||
if: "matrix.dependencies == 'locked'" | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install highest dependencies with composer" | ||
- name: "Install highest dependencies from composer.json" | ||
if: "matrix.dependencies == 'highest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Run maglnet/composer-require-checker" | ||
uses: "docker://webfactory/composer-require-checker:2.0.0" | ||
uses: "docker://webfactory/composer-require-checker:2.1.0" | ||
with: | ||
args: "check --config-file=composer-require-checker.json" | ||
|
||
|
@@ -142,31 +157,35 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.0.0" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@1.7.3" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "none" | ||
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Determine composer cache directory" | ||
id: "determine-composer-cache-directory" | ||
run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v1.0.3" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: "~/.composer/cache" | ||
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}" | ||
key: "${{ matrix.php-version }}-composer-locked-${{ hashFiles('**/composer.lock') }}" | ||
restore-keys: "${{ matrix.php-version }}-composer-locked-" | ||
|
||
- name: "Install lowest dependencies with composer" | ||
- name: "Install lowest dependencies from composer.json" | ||
if: "matrix.dependencies == 'lowest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest" | ||
|
||
- name: "Install locked dependencies with composer" | ||
- name: "Install locked dependencies from composer.lock" | ||
if: "matrix.dependencies == 'locked'" | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install highest dependencies with composer" | ||
- name: "Install highest dependencies from composer.json" | ||
if: "matrix.dependencies == 'highest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
|
@@ -202,31 +221,35 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.0.0" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@1.7.3" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "none" | ||
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Determine composer cache directory" | ||
id: "determine-composer-cache-directory" | ||
run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v1.0.3" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: "~/.composer/cache" | ||
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}" | ||
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}" | ||
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" | ||
|
||
- name: "Install lowest dependencies with composer" | ||
- name: "Install lowest dependencies from composer.json" | ||
if: "matrix.dependencies == 'lowest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest" | ||
|
||
- name: "Install locked dependencies with composer" | ||
- name: "Install locked dependencies from composer.lock" | ||
if: "matrix.dependencies == 'locked'" | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install highest dependencies with composer" | ||
- name: "Install highest dependencies from composer.json" | ||
if: "matrix.dependencies == 'highest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
|
@@ -254,31 +277,35 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.0.0" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@1.7.3" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "xdebug" | ||
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Determine composer cache directory" | ||
id: "determine-composer-cache-directory" | ||
run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v1.0.3" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: "~/.composer/cache" | ||
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}" | ||
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}" | ||
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" | ||
|
||
- name: "Install lowest dependencies with composer" | ||
- name: "Install lowest dependencies from composer.json" | ||
if: "matrix.dependencies == 'lowest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest" | ||
|
||
- name: "Install locked dependencies with composer" | ||
- name: "Install locked dependencies from composer.lock" | ||
if: "matrix.dependencies == 'locked'" | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install highest dependencies with composer" | ||
- name: "Install highest dependencies from composer.json" | ||
if: "matrix.dependencies == 'highest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
|
@@ -308,31 +335,35 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.0.0" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@1.7.3" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "xdebug" | ||
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Determine composer cache directory" | ||
id: "determine-composer-cache-directory" | ||
run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v1.0.3" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: "~/.composer/cache" | ||
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}" | ||
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}" | ||
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" | ||
|
||
- name: "Install lowest dependencies with composer" | ||
- name: "Install lowest dependencies from composer.json" | ||
if: "matrix.dependencies == 'lowest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest" | ||
|
||
- name: "Install locked dependencies with composer" | ||
- name: "Install locked dependencies from composer.lock" | ||
if: "matrix.dependencies == 'locked'" | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install highest dependencies with composer" | ||
- name: "Install highest dependencies from composer.json" | ||
if: "matrix.dependencies == 'highest'" | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
|
Oops, something went wrong.