-
-
Notifications
You must be signed in to change notification settings - Fork 162
75 lines (62 loc) · 1.71 KB
/
coding-conventions.yml
File metadata and controls
75 lines (62 loc) · 1.71 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
66
67
68
69
70
71
72
73
74
75
name: Coding Conventions
on:
pull_request:
workflow_dispatch:
# CSFixer and Rector are temporarily disabled until they have proper PHP 8.4 support
jobs:
check-style:
name: Run style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
coverage: none
- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction
composer mago:install-binary
- name: Run Mago
run: |
composer fmt -- --check
composer lint -- --reporting-format=github
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Format
run: bun run fmt:check
phpstan:
name: "Run static analysis: PHPStan"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
coverage: none
- name: Install composer dependencies
uses: ramsey/composer-install@v3
- name: Run PHPStan
run: vendor/bin/phpstan --error-format=github
# rector:
# name: "Run static analysis: Rector"
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v4
#
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: 8.4
# coverage: none
#
# - name: Install composer dependencies
# uses: ramsey/composer-install@v3
#
# - name: Run Rector
# run: vendor/bin/rector process --no-ansi --dry-run --no-progress-bar