-
Notifications
You must be signed in to change notification settings - Fork 83
39 lines (30 loc) · 896 Bytes
/
lint.yml
File metadata and controls
39 lines (30 loc) · 896 Bytes
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
name: PHP Lints
on:
push:
pull_request:
schedule:
- cron: '45 3 * * SUN'
permissions: {}
jobs:
run:
runs-on: ubuntu-latest
name: "PHP Lints"
steps:
- name: Setup PHP
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
with:
php-version: 8.3
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Validate composer.json
run: composer validate
- name: Lint with php-cs-fixer
run: vendor/bin/php-cs-fixer fix --verbose --diff --dry-run
- name: Lint with phpcs
run: vendor/bin/phpcs --standard=.phpcs-ruleset.xml src/
- name: Lint with phpstan
run: vendor/bin/phpstan analyze