Sitelet https://github.com/php-debugbar/php-debugbar/commit/e1e7e4706a738ee7f8cd736111ebcdaebdcbdd66
Skip to content

Commit e1e7e47

Browse files
authored
Run check on PR, fix on master (#991)
* Run check on PR, fix on master * Run check on PR, fix on master
1 parent 350a844 commit e1e7e47

2 files changed

Lines changed: 36 additions & 5 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Check Code Style
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*"
7+
paths:
8+
- '**.php'
9+
10+
jobs:
11+
cs-check:
12+
runs-on: ubuntu-24.04
13+
timeout-minutes: 15
14+
env:
15+
COMPOSER_NO_INTERACTION: 1
16+
17+
name: Check Code Style
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v6
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: 8.2
27+
coverage: none
28+
tools: composer:v2
29+
30+
- name: Install dependencies
31+
env:
32+
COMPOSER_ROOT_VERSION: dev-master
33+
run: composer update --prefer-dist --no-progress
34+
35+
- name: Fix Code Style
36+
run: vendor/bin/php-cs-fixer check -v --diff

‎.github/workflows/fix-code-style.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ on:
66
- master
77
paths:
88
- '**.php'
9-
pull_request:
10-
branches:
11-
- "*"
12-
paths:
13-
- '**.php'
149

1510
permissions:
1611
contents: write

0 commit comments

Comments
 (0)