-
Notifications
You must be signed in to change notification settings - Fork 37
34 lines (26 loc) · 1022 Bytes
/
coding-standards.yml
File metadata and controls
34 lines (26 loc) · 1022 Bytes
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
name: Coding Standards
on:
push:
pull_request:
jobs:
coding-standards:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Composer require Symfony ${{ matrix.symfony }}
run: SYMFONY_REQUIRE=${{ matrix.symfony }} composer update --no-interaction --no-progress --prefer-dist --verbose
- name: Install php-cs-fixer
run: cd tools/php-cs-fixer && composer install --no-interaction --no-progress --prefer-dist --verbose
- name: Check PHP Coding Standards
run: make php-cs-fixer-dry-run