-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.47 KB
/
Copy pathci.yml
File metadata and controls
65 lines (53 loc) · 1.47 KB
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
name: CI
on: [ push ]
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Checkout
uses: actions/checkout@v4
- name: Install the dependencies
uses: ramsey/composer-install@v3
with:
composer-options: "--no-plugins"
- name: PHPStan
run: vendor/bin/phpstan analyse -c phpstan.neon
rector:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Checkout
uses: actions/checkout@v4
- name: Install the dependencies
uses: ramsey/composer-install@v3
with:
composer-options: "--no-plugins"
- name: Rector
run: vendor/bin/rector --dry-run --no-progress-bar
ecs:
name: ECS
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: dom, fileinfo, filter, gd, hash, intl, json, mbstring, mysqli, pcre, pdo_mysql, zlib
coverage: none
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: Install the dependencies
uses: ramsey/composer-install@v3
with:
composer-options: "--no-plugins"
- name: Run ECS
run: vendor/bin/ecs check --no-progress-bar