-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (45 loc) · 1.44 KB
/
phpstan.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
43
44
45
46
47
48
49
50
name: PHPStan
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
testing:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: [8, 7.4, 7.3, 7.2, 7.1]
phpunit-versions: [latest]
steps:
- uses: actions/checkout@v2
- name: Install PHP versions
uses: shivammathur/setup-php@v2
with:
extensions: mbstring, dom, fileinfo,pdo_sqlite,sqlite
coverage: xdebug
php-version: ${{ matrix.php-versions }}
- name: Get Composer Cache Directory 2
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
id: actions-cache
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php-versions }}-${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ matrix.php-versions }}-${{ runner.os }}-composer-
- name: Cache PHP dependencies
uses: actions/cache@v2
id: vendor-cache
with:
path: vendor
key: ${{ matrix.php-versions }}-${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
- name: Install Dependencies
run: composer install --prefer-dist --optimize-autoloader
- name: Run PHPStan
run: ./vendor/bin/phpstan