-
Notifications
You must be signed in to change notification settings - Fork 131
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 #1391 from kukulich/ci
CI tools moved to special composer.json
- Loading branch information
Showing
13 changed files
with
7,049 additions
and
7,700 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 |
---|---|---|
|
@@ -38,15 +38,23 @@ jobs: | |
with: | ||
coverage: "pcov" | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: intl, sodium | ||
ini-values: memory_limit=-1 | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
|
||
- name: "Install CI dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
working-directory: "tools" | ||
custom-cache-suffix: "ci" | ||
|
||
- name: "Tests" | ||
run: "vendor/bin/phpunit" | ||
run: "tools/vendor/bin/phpunit" | ||
|
||
static-analysis-phpstan: | ||
name: "Static Analysis by PHPStan" | ||
|
@@ -73,15 +81,23 @@ jobs: | |
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: intl, sodium | ||
ini-values: memory_limit=-1 | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
|
||
- name: "Install CI dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
working-directory: "tools" | ||
custom-cache-suffix: "ci" | ||
|
||
- name: "PHPStan" | ||
run: "vendor/bin/phpstan analyse --memory-limit=-1" | ||
run: "tools/vendor/bin/phpstan analyse --memory-limit=-1" | ||
|
||
static-analysis-psalm: | ||
name: "Static Analysis by Psalm" | ||
|
@@ -106,15 +122,23 @@ jobs: | |
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: intl, sodium | ||
ini-values: memory_limit=-1 | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
|
||
- name: "Install CI dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
working-directory: "tools" | ||
custom-cache-suffix: "ci" | ||
|
||
- name: "psalm" | ||
run: "vendor/bin/psalm --shepherd --stats" | ||
run: "tools/vendor/bin/psalm --shepherd --stats" | ||
|
||
mutation-tests: | ||
name: "Mutation tests" | ||
|
@@ -139,15 +163,23 @@ jobs: | |
with: | ||
coverage: "xdebug" | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: intl, sodium | ||
ini-values: memory_limit=-1, zend.assertions=1 | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
|
||
- name: "Install CI dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
working-directory: "tools" | ||
custom-cache-suffix: "ci" | ||
|
||
- name: "Infection" | ||
run: "vendor/bin/roave-infection-static-analysis-plugin --threads=$(nproc)" | ||
run: "tools/vendor/bin/roave-infection-static-analysis-plugin --threads=$(nproc)" | ||
env: | ||
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }} | ||
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | ||
|
@@ -176,15 +208,23 @@ jobs: | |
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: intl, sodium | ||
ini-values: memory_limit=-1 | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
|
||
- name: "Install CI dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
working-directory: "tools" | ||
custom-cache-suffix: "ci" | ||
|
||
- name: "Test Compatibility" | ||
run: "vendor/bin/phpunit test/compat" | ||
run: "tools/vendor/bin/phpunit test/compat" | ||
|
||
demo-scripts: | ||
name: "Check Demo Scripts" | ||
|
@@ -209,6 +249,7 @@ jobs: | |
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: intl, sodium | ||
ini-values: memory_limit=-1 | ||
|
||
- name: "Install dependencies" | ||
|
@@ -243,18 +284,23 @@ jobs: | |
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: intl, sodium | ||
ini-values: memory_limit=-1 | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
|
||
- name: "Install PhpBench" | ||
run: "composer require --with-all-dependencies --dev --prefer-stable --no-interaction --no-progress phpbench/phpbench:^1.1.1" | ||
- name: "Install CI dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
working-directory: "tools" | ||
custom-cache-suffix: "ci" | ||
|
||
- name: "PhpBench" | ||
run: "vendor/bin/phpbench run --progress=dots --iterations=1" | ||
run: "tools/vendor/bin/phpbench run --progress=dots --iterations=1" | ||
|
||
coding-standards: | ||
name: "Check Coding Standards" | ||
|
@@ -279,15 +325,18 @@ jobs: | |
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: intl, sodium | ||
ini-values: memory_limit=-1 | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
working-directory: "tools" | ||
custom-cache-suffix: "ci" | ||
|
||
- name: "Coding Standard" | ||
run: "vendor/bin/phpcs" | ||
run: "tools/vendor/bin/phpcs" | ||
|
||
backward-compatibility: | ||
name: "Check Backward Compatibility" | ||
|
@@ -315,13 +364,15 @@ jobs: | |
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: intl, sodium | ||
ini-values: memory_limit=-1 | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
working-directory: "tools/roave-backward-compatibility-check" | ||
working-directory: "tools" | ||
custom-cache-suffix: "ci" | ||
|
||
- name: "BC Checks" | ||
run: tools/roave-backward-compatibility-check/vendor/bin/roave-backward-compatibility-check --from=origin/${{ github.base_ref }} | ||
run: tools/vendor/bin/roave-backward-compatibility-check --from=origin/${{ github.base_ref }} |
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,6 @@ | ||
/.phpcs-cache | ||
/.phpunit.cache | ||
/phpcs.xml | ||
/tools/roave-backward-compatibility-check/vendor | ||
/tools/vendor | ||
/vendor | ||
|
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.