Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/apiref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
coverage: "none"
php-version: "8.2"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Install ApiGen dependencies"
working-directory: "apigen"
run: "composer install --no-interaction --no-progress"
uses: "ramsey/composer-install@v3"
with:
working-directory: "apigen"

- name: "Run ApiGen"
run: "apigen/vendor/bin/apigen -c apigen/apigen.neon --output docs -- src vendor/nikic/php-parser vendor/ondrejmirtes/better-reflection vendor/phpstan/phpdoc-parser"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/backward-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
coverage: "none"
php-version: "8.2"

- name: "Install dependencies"
run: "composer install --no-dev --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Install BackwardCompatibilityCheck"
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-issue-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ jobs:
coverage: "none"
php-version: "8.3"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Install Issue Bot dependencies"
working-directory: "issue-bot"
run: "composer install --no-interaction --no-progress"
- name: "Install issue-bot dependencies"
uses: "ramsey/composer-install@v3"
with:
working-directory: "issue-bot"

- name: "Tests"
working-directory: "issue-bot"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/changelog-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
coverage: "none"
php-version: "8.2"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Install Changelog Generator dependencies"
working-directory: "changelog-generator"
run: "composer install --no-interaction --no-progress"
uses: "ramsey/composer-install@v3"
with:
working-directory: "changelog-generator"

- name: "PHPStan"
working-directory: "changelog-generator"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ jobs:
extensions: mbstring
ini-values: memory_limit=256M

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Patch PHPStan"
run: "patch src/Analyser/Error.php < e2e/PHPStanErrorPatch.patch"
Expand Down Expand Up @@ -411,8 +410,7 @@ jobs:
tools: ${{ matrix.tools }}
extensions: ${{ matrix.extensions }}

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Install bashunit"
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.22.0"
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/issue-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ jobs:
coverage: "none"
php-version: "8.3"

- name: "Install Issue Bot dependencies"
working-directory: "issue-bot"
run: "composer install --no-interaction --no-progress"
- name: "Install issue-bot dependencies"
uses: "ramsey/composer-install@v3"
with:
working-directory: "issue-bot"

- name: "Cache downloads"
uses: actions/cache@v4
Expand Down Expand Up @@ -90,12 +91,14 @@ jobs:
coverage: "none"
php-version: "8.3"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress --no-dev"
- uses: "ramsey/composer-install@v3"
with:
composer-options: "--no-dev"

- name: "Install Issue Bot dependencies"
working-directory: "issue-bot"
run: "composer install --no-interaction --no-progress"
- name: "Install issue-bot dependencies"
uses: "ramsey/composer-install@v3"
with:
working-directory: "issue-bot"

- uses: Wandalen/wretry.action@v3.8.0
with:
Expand Down Expand Up @@ -132,9 +135,10 @@ jobs:
coverage: "none"
php-version: "8.3"

- name: "Install Issue Bot dependencies"
working-directory: "issue-bot"
run: "composer install --no-interaction --no-progress"
- name: "Install issue-bot dependencies"
uses: "ramsey/composer-install@v3"
with:
working-directory: "issue-bot"

- uses: actions/download-artifact@v4
with:
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ jobs:
if: matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1'
run: "composer require --dev phpunit/phpunit:^9.6 sebastian/diff:^4.0 --update-with-dependencies --ignore-platform-reqs"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Change to simple-downgrade PHP version"
if: matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1'
Expand Down Expand Up @@ -100,12 +99,12 @@ jobs:
- name: "Validate Composer"
run: "composer validate"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Install build-cs dependencies"
working-directory: "build-cs"
run: "composer install --no-interaction --no-progress"
uses: "ramsey/composer-install@v3"
with:
working-directory: "build-cs"

- name: "Lint"
run: "make lint"
Expand All @@ -129,8 +128,7 @@ jobs:
coverage: "none"
php-version: "8.3"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Composer Dependency Analyser"
run: "make composer-dependency-analyser"
Expand All @@ -151,8 +149,7 @@ jobs:
coverage: "none"
php-version: "8.5"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Name Collision Detector"
run: "make name-collision"
23 changes: 12 additions & 11 deletions .github/workflows/phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ jobs:
php-version: "8.2"
extensions: mbstring, intl

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

# only sebastian/diff ^4 supports PHP 7.4 so we need that in the PHAR
- name: "Downgrade PHPUnit"
run: "composer require --dev phpunit/phpunit:^9.6 sebastian/diff:^4.0 --update-with-dependencies --ignore-platform-reqs"

- name: "Install compiler dependencies"
run: "composer install --no-interaction --no-progress --working-dir=compiler"
uses: "ramsey/composer-install@v3"
with:
working-directory: "compiler"

- name: "Compiler tests"
working-directory: "compiler"
Expand All @@ -64,8 +65,9 @@ jobs:
run: "composer dump"

- name: "Install Box dependencies"
working-directory: "compiler/box"
run: "composer install"
uses: "ramsey/composer-install@v3"
with:
working-directory: "compiler/box"

- name: "Compile PHAR"
working-directory: "compiler/build"
Expand All @@ -86,8 +88,7 @@ jobs:
- name: "Set autoloader suffix"
run: "composer config autoloader-suffix PHPStanChecksum"

- name: "Composer dump"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"
env:
COMPOSER_ROOT_VERSION: "2.1.x-dev"

Expand Down Expand Up @@ -250,12 +251,12 @@ jobs:
coverage: "none"
php-version: "8.2"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Install Box dependencies"
working-directory: "compiler/box"
run: "composer install"
uses: "ramsey/composer-install@v3"
with:
working-directory: "compiler/box"

- name: "Extract old phpstan.phar"
run: "php compiler/box/vendor/bin/box extract phar-file-checksum-base/phpstan.phar phar-old"
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/reflection-golden-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:
# Include exotic extensions to discover more symbols
extensions: ds,mbstring,runkit7,scoutapm,seaslog,simdjson,var_representation,yac

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Dump phpSymbols.txt"
run: "php tests/dump-reflection-test-symbols.php"
Expand Down Expand Up @@ -94,8 +93,7 @@ jobs:
ini-file: development
ini-values: memory_limit=2G

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Dump previous reflection data"
run: "php tests/generate-reflection-test.php"
Expand All @@ -108,8 +106,7 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Reflection golden test"
run: "make tests-golden-reflection || true"
12 changes: 4 additions & 8 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ jobs:
shell: bash
run: "composer require --dev phpunit/phpunit:^9.6 sebastian/diff:^4.0 --update-with-dependencies --ignore-platform-reqs"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Change to simple-downgrade PHP version"
if: matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1'
Expand Down Expand Up @@ -113,8 +112,7 @@ jobs:
ini-file: development
extensions: mbstring

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Cache Result cache"
uses: actions/cache@v4
Expand Down Expand Up @@ -150,8 +148,7 @@ jobs:
php-version: "8.2"
ini-file: development

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Generate baseline"
run: |
Expand All @@ -176,8 +173,7 @@ jobs:
php-version: "8.2"
ini-file: development

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Generate baseline"
run: |
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ jobs:
ini-file: development
ini-values: memory_limit=2G

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Tests"
run: "make tests"
Expand Down Expand Up @@ -82,8 +81,7 @@ jobs:
ini-file: development
ini-values: memory_limit=1G

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Tests"
run: "make tests-integration"
Expand All @@ -107,8 +105,7 @@ jobs:
ini-file: development
ini-values: memory_limit=1G

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- id: set-matrix
run: echo "matrix=$(php .github/workflows/tests-levels-matrix.php)" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -142,8 +139,7 @@ jobs:
ini-file: development
ini-values: memory_limit=1G

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Tests"
run: "${{ matrix.script }}"
Expand Down Expand Up @@ -180,8 +176,7 @@ jobs:
shell: bash
run: "composer require --dev phpunit/phpunit:^9.6 sebastian/diff:^4.0 --update-with-dependencies --ignore-platform-reqs"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"

- name: "Downgrade PHPUnit with Paratest"
shell: bash
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/update-phpstorm-stubs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
with:
coverage: "none"
php-version: "8.2"
- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"
- name: "Checkout stubs"
uses: actions/checkout@v4
with:
Expand Down
Loading