-
-
Notifications
You must be signed in to change notification settings - Fork 18
34 lines (32 loc) · 1.03 KB
/
code_style.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
name: Code checks
on:
push:
branches: [ main ]
pull_request: null
jobs:
ecs:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
php: [ '8.1' ]
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 nette/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