-
-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (27 loc) · 888 Bytes
/
cscheck.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
name: Check CS
on:
push:
pull_request_target:
jobs:
build:
env:
COMPOSER_ROOT_VERSION: dev-master
runs-on: ubuntu-latest
name: Check code style
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 10
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: "8.1"
tools: cs2pr
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")
- name: Run git-phpcs
run: composer cscheck -- --report=checkstyle | cs2pr