forked from webignition/uri
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 900 Bytes
/
Copy pathstandards.yml
File metadata and controls
44 lines (35 loc) · 900 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
40
41
42
43
44
name: Coding Standards
on:
push:
branches:
- master
pull_request:
jobs:
php-cs-fixer:
name: PHP CS Fixer Dry Run
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Run
env:
NO_TTY: "true"
run: composer cs-fixer-dry-run
phpcs:
name: PHPCS - PHP ${{ matrix.php }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php: ['7.4', '8.0', '8.1']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup 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: Run
run: composer cs-phpcs