Feature: Checkbox to allow / disallow robots to index #123
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: PHPCS check | ||
on: pull_request | ||
jobs: | ||
phpcs: | ||
name: PHPCS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.4 | ||
coverage: none | ||
tools: composer, cs2pr | ||
- name: Composer Install | ||
uses: ramsey/composer-install@v1 | ||
- name: Run phpcs | ||
id: phpcs | ||
if: always() | ||
run: ./vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml | ||
- name: Show PHPCS results in PR | ||
if: ${{ always() && steps.phpcs.outcome == 'failure' }} | ||
run: cs2pr ./phpcs-report.xml |