Skip to content

Update GitHub Actions and improve exclusions #17

Update GitHub Actions and improve exclusions

Update GitHub Actions and improve exclusions #17

Workflow file for this run

# Sample workflow for validating and linting PHP code with PHPStan
#
# See https://github.com/phpstan/phpstan
#
name: PHPStan
on:
push:
branches-ignore:
- 'main'
- 'develop'
pull_request:
branches-ignore:
- 'main'
- 'develop'
jobs:
phpstan:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer
- name: Install dependencies
run: composer install
- name: Run PHPStan
run: composer phpstan