-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.01 KB
/
code_style.yml
File metadata and controls
33 lines (31 loc) · 1.01 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
name: Code checks
on:
push:
branches: [ master ]
pull_request: null
jobs:
ecs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.3' ]
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- run: composer install --prefer-dist --no-progress --no-suggest
- run: composer create-project janu-software/coding-standard temp/coding-standard --no-progress
- name: copy preset-sniffer
uses: canastro/copy-file-action@master
with:
source: ".coding-standard/project.xml"
target: "temp/coding-standard/preset-sniffer/project.xml"
- name: copy preset-fixer
uses: canastro/copy-file-action@master
with:
source: ".coding-standard/project.php"
target: "temp/coding-standard/preset-fixer/project.php"
- run: php temp/coding-standard/ecs check src tests --preset project