UML-3547 introduced new feature flag - "paper_verification" with a de… #3059
Workflow file for this run
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: "PHP Linting with Code Sniffer" | |
on: | |
pull_request: | |
paths: | |
- "**.php" | |
- "**/app/phpcs.xml.dist" | |
- ".github/workflows/php-linting.yml" | |
permissions: | |
actions: read | |
checks: read | |
contents: none | |
deployments: none | |
issues: none | |
packages: none | |
pull-requests: write | |
repository-projects: none | |
security-events: none | |
statuses: none | |
jobs: | |
phpcs: | |
name: Lint PHP | |
strategy: | |
matrix: | |
service_path: [ 'service-front', 'service-api' ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Setup PHP with tools | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
- name: Install and configure phpcs | |
run: | | |
export install_dir=$HOME/.composer/vendor | |
composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true | |
composer global require --no-interaction squizlabs/php_codesniffer:3.7.2 webimpress/coding-standard:1.3.1 slevomat/coding-standard:8.9.1 | |
phpcs --version | |
phpcs -i | |
- uses: thenabeel/action-phpcs@v8 | |
with: | |
files: "${{ matrix.service_path }}/**/*.php" # you may customize glob as needed | |
phpcs_path: phpcs | |
standard: ${{ matrix.service_path }}/app/phpcs.xml.dist | |
fail_on_warnings: false |