Skip to content

Create PHPStan workflow #8

Create PHPStan workflow

Create PHPStan workflow #8

Workflow file for this run

name: analyse
on: ['push', 'pull_request']
jobs:
test:
runs-on: ubuntu-latest
name: PHPStan
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
- name: Repository Credentials
run: composer config http-basic.repo.magento.com ${{ secrets.MAGENTO_USERNAME }} ${{ secrets.MAGENTO_PASSWORD }}
- name: Install dependencies
run: composer install --no-interaction
- name: Analyse
run: vendor/bin/phpstan analyse