-
-
Notifications
You must be signed in to change notification settings - Fork 32
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 #824 from ergebnis/fix/order
Fix: Order
- Loading branch information
Showing
1 changed file
with
91 additions
and
91 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 |
---|---|---|
|
@@ -14,8 +14,8 @@ env: | |
PHP_INI_VALUES: "memory_limit=-1, phar.readonly=0" | ||
|
||
jobs: | ||
coding-standards: | ||
name: "Coding Standards" | ||
code-coverage: | ||
name: "Code Coverage" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
|
@@ -31,23 +31,16 @@ jobs: | |
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
||
- name: "Lint YAML files" | ||
uses: "ibiqlik/[email protected]" | ||
with: | ||
config_file: ".yamllint.yaml" | ||
file_or_dir: "." | ||
strict: true | ||
|
||
- name: "Set up PHP" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
coverage: "none" | ||
coverage: "xdebug" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
ini-values: "${{ env.PHP_INI_VALUES }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Validate composer.json and composer.lock" | ||
run: "composer validate --strict" | ||
- name: "Set up problem matchers for phpunit/phpunit" | ||
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" | ||
|
||
- name: "Determine composer cache directory" | ||
uses: "./.github/actions/composer/composer/determine-cache-directory" | ||
|
@@ -64,24 +57,16 @@ jobs: | |
with: | ||
dependencies: "${{ matrix.dependencies }}" | ||
|
||
- name: "Run ergebnis/composer-normalize" | ||
run: ".phive/composer-normalize --dry-run" | ||
|
||
- name: "Create cache directory for friendsofphp/php-cs-fixer" | ||
run: "mkdir -p .build/php-cs-fixer" | ||
|
||
- name: "Cache cache directory for friendsofphp/php-cs-fixer" | ||
uses: "actions/[email protected]" | ||
with: | ||
path: ".build/php-cs-fixer" | ||
key: "php-${{ matrix.php-version }}-php-cs-fixer-${{ github.sha }}" | ||
restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-" | ||
- name: "Collect code coverage with Xdebug and phpunit/phpunit" | ||
run: "vendor/bin/phpunit --configuration=test/Integration/phpunit.xml --coverage-clover=.build/logs/clover.xml" | ||
|
||
- name: "Run friendsofphp/php-cs-fixer" | ||
run: "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --dry-run --verbose" | ||
- name: "Send code coverage report to Codecov.io" | ||
env: | ||
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" | ||
run: "bash <(curl -s https://codecov.io/bash)" | ||
|
||
dependency-analysis: | ||
name: "Dependency Analysis" | ||
coding-standards: | ||
name: "Coding Standards" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
|
@@ -97,13 +82,24 @@ jobs: | |
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
||
- name: "Lint YAML files" | ||
uses: "ibiqlik/[email protected]" | ||
with: | ||
config_file: ".yamllint.yaml" | ||
file_or_dir: "." | ||
strict: true | ||
|
||
- name: "Set up PHP" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
coverage: "none" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
ini-values: "${{ env.PHP_INI_VALUES }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Validate composer.json and composer.lock" | ||
run: "composer validate --strict" | ||
|
||
- name: "Determine composer cache directory" | ||
uses: "./.github/actions/composer/composer/determine-cache-directory" | ||
|
||
|
@@ -119,11 +115,24 @@ jobs: | |
with: | ||
dependencies: "${{ matrix.dependencies }}" | ||
|
||
- name: "Run maglnet/composer-require-checker" | ||
run: ".phive/composer-require-checker check --config-file=$(pwd)/composer-require-checker.json" | ||
- name: "Run ergebnis/composer-normalize" | ||
run: ".phive/composer-normalize --dry-run" | ||
|
||
static-code-analysis: | ||
name: "Static Code Analysis" | ||
- name: "Create cache directory for friendsofphp/php-cs-fixer" | ||
run: "mkdir -p .build/php-cs-fixer" | ||
|
||
- name: "Cache cache directory for friendsofphp/php-cs-fixer" | ||
uses: "actions/[email protected]" | ||
with: | ||
path: ".build/php-cs-fixer" | ||
key: "php-${{ matrix.php-version }}-php-cs-fixer-${{ github.sha }}" | ||
restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-" | ||
|
||
- name: "Run friendsofphp/php-cs-fixer" | ||
run: "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --dry-run --verbose" | ||
|
||
compile-phar: | ||
name: "Compile Phar" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
|
@@ -135,6 +144,9 @@ jobs: | |
dependencies: | ||
- "locked" | ||
|
||
env: | ||
COMPOSER_NORMALIZE_PHAR: ".build/phar/composer-normalize.phar" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
@@ -162,30 +174,39 @@ jobs: | |
with: | ||
dependencies: "${{ matrix.dependencies }}" | ||
|
||
- name: "Create cache directory for vimeo/psalm" | ||
run: "mkdir -p .build/psalm" | ||
- name: "Require composer/composer" | ||
run: "composer require composer/composer:${{ env.COMPOSER_VERSION }} --no-interaction --no-progress" | ||
|
||
- name: "Run vimeo/psalm" | ||
run: "vendor/bin/psalm --config=psalm.xml --diff --shepherd --show-info=false --stats --threads=4" | ||
- name: "Remove git placeholder configuration with jq" | ||
run: "echo $(cat box.json | jq 'del(.git)') > box.json" | ||
|
||
tests: | ||
name: "Tests" | ||
- name: "Validate configuration for humbug/box" | ||
run: ".phive/box validate box.json" | ||
|
||
- name: "Compile composer-normalize.phar with humbug/box" | ||
run: ".phive/box compile --config=box.json" | ||
|
||
- name: "Show info about composer-normalize.phar with humbug/box" | ||
run: ".phive/box info ${{ env.COMPOSER_NORMALIZE_PHAR }}" | ||
|
||
- name: "Run composer-normalize.phar" | ||
run: "${{ env.COMPOSER_NORMALIZE_PHAR }}" | ||
|
||
- name: "Run composer-normalize.phar with argument and options" | ||
run: "${{ env.COMPOSER_NORMALIZE_PHAR }} --dry-run composer.json" | ||
|
||
dependency-analysis: | ||
name: "Dependency Analysis" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.2" | ||
- "7.3" | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
|
||
dependencies: | ||
- "lowest" | ||
- "locked" | ||
- "highest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
|
@@ -196,12 +217,8 @@ jobs: | |
with: | ||
coverage: "none" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
ini-values: "${{ env.PHP_INI_VALUES }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Set up problem matchers for phpunit/phpunit" | ||
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" | ||
|
||
- name: "Determine composer cache directory" | ||
uses: "./.github/actions/composer/composer/determine-cache-directory" | ||
|
||
|
@@ -217,17 +234,11 @@ jobs: | |
with: | ||
dependencies: "${{ matrix.dependencies }}" | ||
|
||
- name: "Run auto-review tests with phpunit/phpunit" | ||
run: "vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml" | ||
|
||
- name: "Run unit tests with phpunit/phpunit" | ||
run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml" | ||
|
||
- name: "Run integration tests with phpunit/phpunit" | ||
run: "vendor/bin/phpunit --configuration=test/Integration/phpunit.xml" | ||
- name: "Run maglnet/composer-require-checker" | ||
run: ".phive/composer-require-checker check --config-file=$(pwd)/composer-require-checker.json" | ||
|
||
code-coverage: | ||
name: "Code Coverage" | ||
static-code-analysis: | ||
name: "Static Code Analysis" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
|
@@ -246,14 +257,11 @@ jobs: | |
- name: "Set up PHP" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
coverage: "xdebug" | ||
coverage: "none" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
ini-values: "${{ env.PHP_INI_VALUES }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Set up problem matchers for phpunit/phpunit" | ||
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" | ||
|
||
- name: "Determine composer cache directory" | ||
uses: "./.github/actions/composer/composer/determine-cache-directory" | ||
|
||
|
@@ -269,29 +277,30 @@ jobs: | |
with: | ||
dependencies: "${{ matrix.dependencies }}" | ||
|
||
- name: "Collect code coverage with Xdebug and phpunit/phpunit" | ||
run: "vendor/bin/phpunit --configuration=test/Integration/phpunit.xml --coverage-clover=.build/logs/clover.xml" | ||
- name: "Create cache directory for vimeo/psalm" | ||
run: "mkdir -p .build/psalm" | ||
|
||
- name: "Send code coverage report to Codecov.io" | ||
env: | ||
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" | ||
run: "bash <(curl -s https://codecov.io/bash)" | ||
- name: "Run vimeo/psalm" | ||
run: "vendor/bin/psalm --config=psalm.xml --diff --shepherd --show-info=false --stats --threads=4" | ||
|
||
compile-phar: | ||
name: "Compile Phar" | ||
tests: | ||
name: "Tests" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.2" | ||
- "7.3" | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
|
||
dependencies: | ||
- "lowest" | ||
- "locked" | ||
|
||
env: | ||
COMPOSER_NORMALIZE_PHAR: ".build/phar/composer-normalize.phar" | ||
- "highest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
|
@@ -305,6 +314,9 @@ jobs: | |
ini-values: "${{ env.PHP_INI_VALUES }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Set up problem matchers for phpunit/phpunit" | ||
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" | ||
|
||
- name: "Determine composer cache directory" | ||
uses: "./.github/actions/composer/composer/determine-cache-directory" | ||
|
||
|
@@ -320,23 +332,11 @@ jobs: | |
with: | ||
dependencies: "${{ matrix.dependencies }}" | ||
|
||
- name: "Require composer/composer" | ||
run: "composer require composer/composer:${{ env.COMPOSER_VERSION }} --no-interaction --no-progress" | ||
|
||
- name: "Remove git placeholder configuration with jq" | ||
run: "echo $(cat box.json | jq 'del(.git)') > box.json" | ||
|
||
- name: "Validate configuration for humbug/box" | ||
run: ".phive/box validate box.json" | ||
|
||
- name: "Compile composer-normalize.phar with humbug/box" | ||
run: ".phive/box compile --config=box.json" | ||
|
||
- name: "Show info about composer-normalize.phar with humbug/box" | ||
run: ".phive/box info ${{ env.COMPOSER_NORMALIZE_PHAR }}" | ||
- name: "Run auto-review tests with phpunit/phpunit" | ||
run: "vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml" | ||
|
||
- name: "Run composer-normalize.phar" | ||
run: "${{ env.COMPOSER_NORMALIZE_PHAR }}" | ||
- name: "Run unit tests with phpunit/phpunit" | ||
run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml" | ||
|
||
- name: "Run composer-normalize.phar with argument and options" | ||
run: "${{ env.COMPOSER_NORMALIZE_PHAR }} --dry-run composer.json" | ||
- name: "Run integration tests with phpunit/phpunit" | ||
run: "vendor/bin/phpunit --configuration=test/Integration/phpunit.xml" |