Skip to content
Merged
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
10 changes: 7 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,16 +257,20 @@ jobs:
cd ${{ runner.temp }}
git clone https://git.drupalcode.org/project/drupal.git
cd drupal
composer config repositories.0 composer https://packages.drupal.org/8
composer config repositories.1 path $GITHUB_WORKSPACE
# Add a repository instead of replacing one of core's. Core's path
# repository keeps the checkout, which has the tests its PHPStan config
# needs. Drupal 12 packages don't: https://www.drupal.org/node/3618953.
composer config repositories.phpstan-drupal path $GITHUB_WORKSPACE
- name: "Install Drupal core dependencies"
uses: "ramsey/composer-install@v4"
with:
working-directory: "${{ runner.temp }}/drupal"
- name: "require phpstan-drupal"
run: |
cd ${{ runner.temp }}/drupal
composer require drupal/core-dev "phpstan/phpstan:^2.0" "phpstan/phpstan-phpunit:^2.0" mglaman/phpstan-drupal "${{ steps.branch_alias.outputs.VERSION_ALIAS }} as 2.99.99" phpstan/extension-installer --with-all-dependencies
# Core's require-dev already has what this job needs. Only update these
# packages: a wider update replaces the core checkout with a package.
composer require --dev "phpstan/phpstan:^2.0" "phpstan/phpstan-phpunit:^2.0" mglaman/phpstan-drupal "${{ steps.branch_alias.outputs.VERSION_ALIAS }} as 2.99.99" --with-dependencies
- name: "Check baseline"
run: |
cd ${{ runner.temp }}/drupal
Expand Down
Loading