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 70e73a1 commit 56ccf82
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: PHP_CodeSniffer
# This file is managed in https://github.com/happyprime/projects
name: PHPCS (Default, PHP 8.2)

on: pull_request

Expand All @@ -12,7 +13,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 +29,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 56ccf82

Please sign in to comment.