-
Notifications
You must be signed in to change notification settings - Fork 29
48 lines (39 loc) · 1.09 KB
/
coding-standards.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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Coding Standards
on: pull_request
jobs:
phpcs:
name: PHPCS
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ['8.4']
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Log information
run: |
echo "$GITHUB_REF"
echo "$GITHUB_EVENT_NAME"
git --version
php --version
composer --version
- name: Validate Composer
run: composer validate --strict
- name: Install dependencies
uses: ramsey/composer-install@v1
with:
composer-options: "--ignore-platform-reqs"
- name: Run PHPCS
run: composer phpcs