-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 890 Bytes
/
lint.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
name: lint
on: push
jobs:
build:
name: lint
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php:
- "8.3"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install difftastic
run: sudo snap install difftastic
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Check coding styles
run: composer run-script cs-lint
- name: Check leanness of package
run: composer run-script validate-gitattributes