-
Notifications
You must be signed in to change notification settings - Fork 0
116 lines (88 loc) · 3.56 KB
/
sa.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: Static Analysis
env:
APP_ENV: test
on:
push:
branches:
- main
pull_request:
jobs:
composer-validate:
name: Validate composer.json
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: ctype, iconv, intl, pgsql, mbstring, xml
- name: Composer Validate
run: composer validate --strict
php-cs-fixer:
name: Lint PHP Source
runs-on: ubuntu-latest
env:
PHP_CS_FIXER_IGNORE_ENV: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: ctype, iconv, intl, pgsql, mbstring, xml
- name: Install PHP-CS-FIXER
run: composer install -d $GITHUB_WORKSPACE/tools/php-cs-fixer --prefer-dist --no-progress
- name: Enforce Coding Standards
run: $GITHUB_WORKSPACE/tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config $GITHUB_WORKSPACE/.php-cs-fixer.dist.php --dry-run
phpstan:
name: PHPStan Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: ctype, iconv, intl, pgsql, mbstring, xml
- name: Install Dependencies
run: composer install --no-progress --prefer-dist
- name: Install PHPStan
run: composer install -d $GITHUB_WORKSPACE/tools/phpstan --prefer-dist --no-progress
- name: Analyze Source
run: $GITHUB_WORKSPACE/tools/phpstan/vendor/bin/phpstan analyze -c $GITHUB_WORKSPACE/phpstan.dist.neon
rector:
name: Rector PHP Source
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: ctype, iconv, intl, pgsql, mbstring, xml
- name: Install Dependencies
run: composer install --no-progress --prefer-dist
- name: Install Rector
run: composer install -d $GITHUB_WORKSPACE/tools/rector --prefer-dist --no-progress
- name: Analyze Source
run: $GITHUB_WORKSPACE/tools/rector/vendor/bin/rector process --clear-cache --dry-run -c $GITHUB_WORKSPACE/rector.php
twig-cs:
name: Lint Twig Source
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: ctype, iconv, intl, pgsql, mbstring, xml
- name: Install TwigCS
run: composer install -d $GITHUB_WORKSPACE/tools/twigcs --prefer-dist --no-progress
- name: Enforce Coding Standards
run: $GITHUB_WORKSPACE/tools/twigcs/vendor/bin/twigcs --config $GITHUB_WORKSPACE/.twigcs.dist.php