2020-10-01 02:35:21 +02:00
|
|
|
name: "coding standards"
|
|
|
|
|
2021-03-24 09:23:04 +01:00
|
|
|
on:
|
|
|
|
pull_request: ~
|
|
|
|
push: ~
|
2020-10-01 02:35:21 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
coding-standards:
|
|
|
|
name: "coding standards"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
steps:
|
|
|
|
- name: "checkout"
|
|
|
|
uses: "actions/checkout@v2"
|
|
|
|
|
|
|
|
- name: "installing PHP"
|
|
|
|
uses: "shivammathur/setup-php@v2"
|
|
|
|
with:
|
|
|
|
php-version: "7.4"
|
|
|
|
ini-values: memory_limit=-1
|
2020-10-01 03:18:53 +02:00
|
|
|
tools: composer:v2, cs2pr
|
2020-10-01 02:35:21 +02:00
|
|
|
extensions: bcmath, mbstring, intl, sodium, json
|
|
|
|
|
|
|
|
- name: "installing dependencies"
|
|
|
|
run: "composer update --no-interaction --no-progress"
|
|
|
|
|
|
|
|
- name: "checking coding standards ( codesniffer )"
|
2020-10-17 05:14:49 +02:00
|
|
|
run: "php vendor/bin/phpcs"
|
2020-10-14 09:37:46 +02:00
|
|
|
|
|
|
|
- name: "checking coding standards ( php-cs-fixer )"
|
2021-03-10 00:12:23 +01:00
|
|
|
run: "php vendor/bin/php-cs-fixer fix --dry-run --diff --ansi"
|