Skip to content

Release/1.1.0

Release/1.1.0 #2

Workflow file for this run

name: phpstan
on: pull_request
jobs:
build:
strategy:
matrix:
PHP_VERSION: [php74-fpm]
MAGENTO_VERSION: [2.4.2]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- 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 our code into the docker container
run: docker cp $(pwd) magento-project-community-edition:/data/extensions/
- name: Install the extensions in Magento
run: docker exec magento-project-community-edition composer require magmodules/magento2-messagebird:@dev fooman/phpstan-magento2-magic-methods:^0.7
- name: Run PHPStan
run: docker exec magento-project-community-edition /bin/bash -c "./vendor/bin/phpstan analyse -c /data/extensions/*/phpstan.neon /data/extensions"