📝 docs(docker): add the command line to execute phpcs through do… #2
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: Code quality | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [ 8.3 ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Install dependencies | |
run: composer install --no-progress --no-suggest --prefer-dist | |
- name: Run PHP_CodeSniffer | |
run: vendor/bin/phpcs --standard=PSR12 src test |