Skip to content

Commit ddf9acf

Browse files
Add code style check to CI
1 parent 829b2e9 commit ddf9acf

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/code-style.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Code style
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
code_analysis:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
actions:
15+
-
16+
name: "Code style"
17+
run: vendor/bin/php-cs-fixer fix -v --diff --dry-run
18+
php-versions: ['7.4']
19+
20+
name: ${{ matrix.actions.name }}
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
26+
# see https://github.com/shivammathur/setup-php
27+
- uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-versions }}
30+
coverage: none
31+
32+
# composer install cache - https://github.com/ramsey/composer-install
33+
- uses: "ramsey/composer-install@v1"
34+
35+
- run: ${{ matrix.actions.run }}

0 commit comments

Comments
 (0)