1
0
forked from poc/pds
Files
poc-pds1/.github/workflows/larastan.yaml

33 lines
735 B
YAML

# Filenme: .github/workflows/larastan.yaml
name: Laravel Larastan
on:
pull_request:
workflow_dispatch:
jobs:
larastan:
runs-on: ubuntu-latest
steps:
# Reinstall system libraries to ensure compatibility
- name: Ensure system libraries are up-to-date
run: |
sudo apt-get update
sudo apt-get install --reinstall --yes git libc6
- uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
- name: Install dependencies
run: composer install
# Run larastan code quality checks
- name: Run Larastan
run: vendor/bin/phpstan analyse --no-progress --memory-limit=2G