Merge pull request #74 from mollie/release/1.14.0 #128
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: phpstan | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- PHP_VERSION: php73-fpm | |
MAGENTO_VERSION: 2.3.7-p3 | |
- PHP_VERSION: php74-fpm | |
MAGENTO_VERSION: 2.4.4 | |
- PHP_VERSION: php82-fpm | |
MAGENTO_VERSION: 2.4.6 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Start Docker | |
run: docker run --detach --name magento-project-community-edition michielgerritsen/magento-project-community-edition:${{ matrix.PHP_VERSION }}-magento${{ matrix.MAGENTO_VERSION }} | |
- name: Upload the code into the docker container | |
run: docker cp $(pwd)/. magento-project-community-edition:/data/extensions/mollie-magento2-subscriptions/ | |
- name: Install Mollie and Mollie Subscription extensions | |
run: docker exec magento-project-community-edition ./install-composer-package mollie/magento2 mollie/magento2-subscriptions:@dev | |
- name: Install Mollie and Mollie Subscription extensions and run setup:di:compile | |
run: | | |
docker exec magento-project-community-edition php bin/magento module:enable Mollie_Payment Mollie_Subscriptions | |
docker exec magento-project-community-edition ./retry "php bin/magento setup:di:compile" | |
- name: Run PHPStan | |
run: docker exec magento-project-community-edition /bin/bash -c "./vendor/bin/phpstan analyse --debug -c /data/extensions/mollie-magento2-subscriptions/phpstan.neon /data/extensions/mollie-magento2-subscriptions" |