diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2020-04-15 14:44:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 14:44:34 +0300 |
commit | e32882fdbd2a96b8d0b0d3174c7667973a0063bb (patch) | |
tree | 6169454e87afbea37193c1aadf8b61702d67d97f | |
parent | 2b4293c6fc54f285acdbbc6bec27c3d67fe96f23 (diff) | |
parent | e639b5f4b10ed01dced4259ae3e588fef3e2a7d7 (diff) |
Merge pull request #2907 from nextcloud/techdept/php-cs-fixer-actionv1.3.0
Add php cs fixer action
-rw-r--r-- | .github/workflows/lint.yml | 16 | ||||
-rw-r--r-- | composer.json | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 370839b57..8a9c3ba56 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,6 +32,22 @@ jobs: - name: Lint run: composer run lint + php-cs-fixer: + name: php-cs check + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Set up php + uses: shivammathur/setup-php@master + with: + php-version: 7.4 + coverage: none + - name: Install dependencies + run: composer i + - name: Run coding standards check + run: composer run cs:check + app-code-check: runs-on: ubuntu-latest strategy: diff --git a/composer.json b/composer.json index 5863184b1..7c410fadc 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "vimeo/psalm": "^3.9" }, "scripts": { - "cs:check": "php-cs-fixer fix --dry-run", + "cs:check": "php-cs-fixer fix --dry-run --diff", "cs:fix": "php-cs-fixer fix", "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;", "phan": "phan --allow-polyfill-parser -k .phan/config.php", |