Merge pull request #206 from lightspeedwp/dependabot/composer/phpunit… #509
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: Lint PHP | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set PHP version | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
coverage: none | |
tools: composer:v2 | |
- name: Install dependencies | |
run: composer install | |
- name: Lint PHP | |
run: ./vendor/bin/phpcs -p --standard=.phpcs.xml.dist |