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

40 lines
791 B
YAML

name: PHP - Larastan
on:
push:
branches:
- dev
- staging
pull_request:
branches:
- dev
- staging
jobs:
Larastan:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.4]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, dom, curl, libxml, mbstring
coverage: none
- name: Install Composer dependencies
run: composer install --no-interaction --no-progress
- name: Run Larastan
run: ./vendor/bin/phpstan analyse
# - name: Commit linted files
# uses: stefanzweifel/git-auto-commit-action@v5