Update command.php #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Coding Standards | |
on: | |
push: | |
branches: | |
- trunk | |
pull_request: | |
jobs: | |
phpcs: | |
name: PHP coding standards | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Get Composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Set up Composer caching | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-composer-dependencies | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.0" | |
coverage: none | |
tools: composer, cs2pr | |
- name: Log debug information | |
run: | | |
php --version | |
composer --version | |
- name: Install Composer dependencies | |
run: | | |
composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction | |
echo "${PWD}/vendor/bin" >> $GITHUB_PATH | |
- name: Log PHPCS debug information | |
run: phpcs -i | |
- name: Run PHPCS on all files | |
run: phpcs command.php -q -n --report=checkstyle | cs2pr |