10 uses: actions/checkout@v2
11 - name: Get changed files
13 uses: jitterbit/get-changed-files@v1
15 uses: shivammathur/setup-php@master
19 - name: Install dependencies
20 run: bin/composer.phar run cs:install
21 - name: Run coding standards check
23 if ! echo "${{ steps.changes.outputs.added }}" | grep -qE "^(\\.php_cs(\\.dist)?|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${{ steps.changes.outputs.added }}"); else EXTRA_ARGS=''; fi
24 bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --diff --diff-format=udiff --dry-run --stop-on-violation --using-cache=no ${EXTRA_ARGS}