2022-01-19 10:10:57 +01:00
|
|
|
name: Psalm
|
2020-01-08 06:12:46 +01:00
|
|
|
|
2020-06-06 22:40:00 +02:00
|
|
|
on:
|
2020-04-08 09:58:23 +02:00
|
|
|
push:
|
2022-01-19 10:10:57 +01:00
|
|
|
paths:
|
|
|
|
- '**.php'
|
|
|
|
- 'psalm.xml'
|
|
|
|
- 'psalm-baseline.xml'
|
|
|
|
- '.github/workflows/psalm.yml'
|
2020-01-08 06:12:46 +01:00
|
|
|
|
|
|
|
jobs:
|
2022-01-19 10:10:57 +01:00
|
|
|
psalm:
|
|
|
|
name: Psalm
|
2020-01-08 06:12:46 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-01-19 10:10:57 +01:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: '8.0'
|
|
|
|
coverage: none
|
|
|
|
|
|
|
|
- name: Install composer dependencies
|
|
|
|
uses: composer install -n --prefer-dist
|
2020-01-08 06:12:46 +01:00
|
|
|
|
2022-01-19 10:10:57 +01:00
|
|
|
- name: Run Psalm
|
|
|
|
run: ./vendor/bin/psalm --threads=2 --shepherd
|