Use a prebuilt phpstan Docker image to analyse Shopware 6 plugins.
docker run --rm -v /path/to/the/plugin:/app aragon999/phpstan-shopware:v6.2.0 analyze --level 5 .
This will use the latest stable Shopware release and the latest PHPStan release.
name: Run PHPStan
on:
push:
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v2
- name: Run PHPStan
uses: aragon999/phpstan-shopware-docker@master
This will use the Shopware version v6.2.2 with the latest PHPStan:
image:
name: aragon999/phpstan-shopware:v6.2.2
entrypoint: [""]
lint:plugin:
script:
- phpstan analyze .
Content type
Image
Digest
sha256:39d921afc…
Size
114.6 MB
Last updated
about 2 months ago
docker pull aragon999/phpstan-shopware:v6.6.7