Skip to content

add phpunit.xml to gitignore #62

add phpunit.xml to gitignore

add phpunit.xml to gitignore #62

Workflow file for this run

name: Static analysis
on:
pull_request:
push:
branches-ignore: [master]
jobs:
static-analysis:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Get Composer cache directory path
id: composer-cache-dir
run: echo "::set-output name=path::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-dir.outputs.path }}
key: composer-${{ hashFiles('composer.lock') }}
restore-keys: composer-
- name: Install Composer dependencies
run: composer install
- name: Run PHPStan
run: vendor/bin/phpstan analyse --no-progress --no-interaction