PLGMAG2V2-830: Prepare changes for the 3.9.1 release (#753) #6
Workflow file for this run
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
name: Magento 2 PHPStan | |
on: [push] | |
jobs: | |
phpstan: | |
name: PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
env: | |
COMPOSER_AUTH_JSON: | | |
{ | |
"http-basic": { | |
"repo.magento.com": { | |
"username": "${{ secrets.MAGENTO_MARKETPLACE_USERNAME }}", | |
"password": "${{ secrets.MAGENTO_MARKETPLACE_PASSWORD }}" | |
} | |
} | |
} | |
- uses: actions/checkout@v4 | |
- name: Create composer project | |
run: composer create-project --no-install --no-interaction --no-plugins --repository-url=https://repo-magento-mirror.fooman.co.nz/ magento/project-community-edition:2.4.5-p8 /home/runner/work/magento | |
- name: Create magento2-core directory in package-source | |
run: mkdir -p /home/runner/work/magento/package-source/multisafepay/magento2-core | |
- name: Move repository content | |
run: cp -r -f ${{ github.workspace }}/* /home/runner/work/magento/package-source/multisafepay/magento2-core | |
- name: Checkout PHP-SDK | |
continue-on-error: true | |
uses: actions/checkout@v4 | |
with: | |
repository: multisafepay/php-sdk-internal | |
token: ${{ secrets.GLOBAL_GITHUB_TOKEN }} | |
ref: ${{ github.ref_name }} | |
- name: Create php-sdk directory in package-source | |
if: success() | |
run: mkdir -p /home/runner/work/magento/package-source/multisafepay/php-sdk | |
- name: Move PHP-SDK Repository content | |
if: success() | |
continue-on-error: true | |
run: cp -r -f ${{ github.workspace }}/* /home/runner/work/magento/package-source/multisafepay/php-sdk | |
- name: Add composer plugins | |
working-directory: /home/runner/work/magento | |
run: composer config --no-plugins allow-plugins true | |
- name: Add MultiSafepay packages to Composer | |
working-directory: /home/runner/work/magento | |
run: composer config repositories.multisafepay "path" "package-source/multisafepay/*" | |
- name: Add module to composer | |
working-directory: /home/runner/work/magento | |
run: composer require multisafepay/magento2-core --no-update --no-interaction | |
- name: Install PHPStan extension installer | |
working-directory: /home/runner/work/magento | |
run: composer require --dev phpstan/extension-installer --no-update --no-interaction | |
- name: Install PHPStan Magento extension | |
working-directory: /home/runner/work/magento | |
run: composer require --dev bitexpert/phpstan-magento --no-update --no-interaction | |
- name: Install composer dependencies | |
working-directory: /home/runner/work/magento | |
run: composer install --no-interaction | |
- name: Run PHPStan | |
working-directory: /home/runner/work/magento | |
run: vendor/bin/phpstan analyse -c vendor/multisafepay/magento2-core/phpstan.neon --error-format github |