-
Notifications
You must be signed in to change notification settings - Fork 22
35 lines (27 loc) · 918 Bytes
/
phpcs.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
35
name: Code Style Check
on:
push:
workflow_dispatch:
permissions:
contents: read
env:
PHP_VERSION: "7.4"
jobs:
codestyle:
name: Run code style check
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Check out source code
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.0.2
- name: Set up PHP
uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # tag=v2.21.2
with:
php-version: ${{ env.PHP_VERSION }}
coverage: none
- name: Install Dependencies
uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # tag=3.0.0
- name: Add error matcher
run: echo "::add-matcher::$(pwd)/.github/checkstyle-problem-matcher.json"
- name: Run style check
run: vendor/bin/phpcs --report=checkstyle