-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 #203 from ergebnis/feature/synchronize
Enhancement: Synchronize with ergebnis/php-library-template
- Loading branch information
Showing
17 changed files
with
258 additions
and
95 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,yml}] | ||
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.8.1" | ||
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') }}" | ||
|
@@ -91,36 +102,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.8.1" | ||
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://localheinz/composer-require-checker-action:1.1.1" | ||
uses: "docker://webfactory/composer-require-checker:2.1.0" | ||
|
||
static-code-analysis: | ||
name: "Static Code Analysis" | ||
|
@@ -137,31 +152,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.8.1" | ||
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" | ||
|
||
|
@@ -197,31 +216,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.8.1" | ||
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" | ||
|
||
|
@@ -249,31 +272,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.8.1" | ||
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" | ||
|
||
|
@@ -303,31 +330,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.8.1" | ||
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.