-
-
Notifications
You must be signed in to change notification settings - Fork 223
65 lines (52 loc) · 1.56 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
51
52
53
54
55
56
57
58
59
60
61
62
63
name: PHP Stan
on:
push:
branches:
- "master"
pull_request:
types:
- synchronize
- opened
- edited
- reopened
jobs:
test:
# Setup ubuntu latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.0]
laravel: ["8.*"]
laravel-require: [8.0]
name: "PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}"
steps:
- uses: actions/checkout@master
# Configure PHP
- name: Select PHP version
uses: shivammathur/setup-php@master
with:
php-version: "${{ matrix.php }}"
extensions: mbstring, pdo_sqlite, fileinfo, gd, php_pgsql
coverage: none
# Install legacy factories for Laravel 8/9
- name: Install legacy factories for Laravel
run: composer create-project laravel/laravel:^${{matrix.laravel-require}} laravel
# Display installed laravel version
- name: Show laravel version
run: cd laravel &&
composer show laravel/framework
# Laravel require badaso core
- name: Laravel file configuration
run: git branch &&
cd laravel &&
composer require badaso/core:dev-${GITHUB_HEAD_REF} -W &&
composer update --no-interaction -W
# Laravel setup
- name: Laravel setup
run: cd laravel &&
php artisan badaso:setup --force
# Badaso Core Test PHPStan
- name: Badaso core test PHPStan
run: cd laravel &&
./vendor/bin/phpstan analyse -c vendor/badaso/core/phpstan.neon.dist