Update tests-php.yml #6
This file contains hidden or 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 Quality Checks | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
checks: | |
name: Codesniffer | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.0 | |
- name: Validate composer file | |
run: composer validate | |
- name: Install composer dependencies | |
run: composer install -o | |
- name: Run codesniffer | |
run: composer cs |