-
Notifications
You must be signed in to change notification settings - Fork 76
62 lines (53 loc) · 1.77 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
##################################################################################
#
# Laravel API Response Builder Static code analysis Github Action config
#
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
# @copyright 2016-2024 Marcin Orlowski
# @license http://www.opensource.org/licenses/mit-license.php MIT
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
#
##################################################################################
name: "Static Analysis"
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
- "dev"
jobs:
check:
strategy:
# do not stop the workflow if single run failed
fail-fast: false
matrix:
# quotes are needed it is treated as a number and zero at decimal part is gone
# at runtime i.e. 8.10 -> 8.1, while "8.10" => "8.10".
laravel: ["11.0"]
php: ["8.2"]
runs-on: ubuntu-latest
steps:
- name: "Checkout repository..."
uses: actions/checkout@v4
# https://github.com/marketplace/actions/composer-php-actions
- name: "Installing dependencies..."
uses: php-actions/composer@v6
with:
version: 2
php_version: "${{ matrix.php }}"
dev: yes
# # https://github.com/marketplace/actions/phpstan-php-actions
# - name: "Running PHPStan..."
# uses: php-actions/phpstan@v3
# with:
# configuration: "phpstan.neon"
# php_version: "${{ matrix.php }}"
# # memory_limit: "16M"
# - name: "Making cache folder writable"
# shell: bash
# run: chmod 777 vendor/orchestra/testbench-core/laravel/bootstrap/cache
- name: "Running PHPStan..."
shell: bash
run: vendor/bin/phpstan