-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 968 Bytes
/
analysis.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
name: analysis
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
phpstan:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php: ['8.0', '8.1', '8.2']
name: P${{ matrix.php }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php }}
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php }}-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-plugins
- name: Run phpstan
run: php vendor/bin/phpstan analyse