Skip to content

Commit

Permalink
Update: synced local '.github/workflows/phpcs.yml' with remote 'workf…
Browse files Browse the repository at this point in the history
…lows/phpcs-default.yml'
  • Loading branch information
amiabot committed Nov 16, 2023
1 parent 9a3fd6b commit 4b39476
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PHP_CodeSniffer
name: PHPCS (Default)

on: pull_request

Expand All @@ -12,7 +12,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.2'
coverage: none
tools: composer, cs2pr

Expand All @@ -28,7 +28,9 @@ jobs:
${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-interaction --no-scripts
run: |
composer config github-oauth.github.com ${{ secrets.AMIABOT_BOT_TOKEN }}
composer install --prefer-dist --no-progress
- name: Detect coding standard violations
run: vendor/bin/phpcs -q --report=checkstyle . | cs2pr --notices-as-warnings

0 comments on commit 4b39476

Please sign in to comment.