mirror of https://github.com/pixelfed/pixelfed
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.
36 lines
838 B
YAML
36 lines
838 B
YAML
name: Static Analysis
|
|
|
|
on:
|
|
push:
|
|
branches: [staging, dev]
|
|
pull_request:
|
|
branches: [staging, dev]
|
|
|
|
jobs:
|
|
larastan:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- 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@v4
|
|
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
|