-
-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (34 loc) · 918 Bytes
/
phpstan.yaml
File metadata and controls
41 lines (34 loc) · 918 Bytes
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
name: phpstan
on:
workflow_dispatch:
pull_request:
branches:
- master
- dev
push:
branches:
- dev
- master
jobs:
phpstan:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.3']
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 tool
run: src/vendor/bin/phpstan analyse