-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 915 Bytes
/
phpstan.yaml
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
name: phpstan
on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
- master
jobs:
phpstan:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.2']
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }}
steps:
- uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install Composer dependencies
run: composer install -o
- name: Run phpstan
run: vendor/bin/phpstan analyse --memory-limit=1G