Merge pull request #347 from 10up/feature/bump-tested-upto #378
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 | |
on: | |
push: | |
branches: | |
- develop | |
- trunk | |
pull_request: | |
branches: | |
- develop | |
paths: # Note: Update paths here will also require updating paths in ignore.phpcs.yml. | |
- '**.php' | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set PHP version | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
tools: composer:v2 | |
coverage: none | |
- name: Install dependencies | |
run: composer install | |
- name: Run PHPCS | |
run: vendor/bin/phpcs autoshare-for-twitter.php includes/ --extensions=php -s |