Skip to content

Attempt to install phpstan using github action. #516

Attempt to install phpstan using github action.

Attempt to install phpstan using github action. #516

Workflow file for this run

name: PHPStan for OpenLab custom files
on:
push:
paths:
- '**.php'
- '**.yml'
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: php-actions/composer@v6
- name: Clear Composer Cache
run: composer clear-cache
- name: Install Composer dependencies
run: composer install --no-interaction
- name: PHPStan Static Analysis
run: vendor/bin/phpstan --memory-limit=1G --error-format=github