You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/.github/workflows/php-larastan.yml

39 lines
869 B
YAML

name: PHP - Larastan
permissions:
contents: read
on:
push:
branches: [staging, dev, unstable]
pull_request:
branches: [dev]
jobs:
larastan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
extensions: mbstring, pdo_sqlite, bcmath, intl
coverage: none
- name: Cache Composer dependencies
uses: actions/cache@v6
with:
path: vendor
key: composer-8.5-${{ hashFiles('composer.lock') }}
restore-keys: composer-8.5-
- name: Install Composer dependencies
run: composer install --no-interaction --no-progress --prefer-dist
- name: Run Larastan
run: vendor/bin/phpstan analyse --memory-limit=512M