-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 1.04 KB
/
composer-analyze.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Composer Analyze
on:
pull_request:
push:
branches:
- main
jobs:
composer-analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Install Composer
run: |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
- name: Install Dependencies
run: composer install
- name: Install phpstan-deprecation-rules
run: composer require --dev phpstan/phpstan-deprecation-rules
- name: Install phpstan-phpunit
run: composer require --dev phpstan/phpstan-phpunit
- name: Install phpstan-banned-code
run: composer require --dev ekino/phpstan-banned-code
- name: Composer Analyze
run: vendor/bin/phpstan analyze --memory-limit=2G