mirror of
https://github.com/retailcrm/url-validator.git
synced 2024-11-21 20:56:07 +03:00
77e2d1e5bb
* add php8 support, symfony 6 support, update dev dependencies * share matrix for code quality tools
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: "Code Quality Check"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "**.php"
|
|
- "phpcs.xml"
|
|
- ".github/workflows/code_quality.yml"
|
|
|
|
jobs:
|
|
phpcs:
|
|
name: "PHP CodeSniffer"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2']
|
|
steps:
|
|
- name: Check out code into the workspace
|
|
uses: actions/checkout@v2
|
|
- name: Run PHPCS
|
|
uses: chekalsky/phpcs-action@v1
|
|
phpmd:
|
|
name: "PHP MessDetector"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2']
|
|
steps:
|
|
- name: Check out code into the workspace
|
|
uses: actions/checkout@v2
|
|
- name: Run PHPMD
|
|
uses: GeneaLabs/action-reviewdog-phpmd@1.0.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
level: 'warning'
|
|
reporter: github-pr-check
|
|
standard: './phpmd.xml.dist'
|
|
target_directory: 'src'
|
|
phpstan:
|
|
name: PHPStan
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2']
|
|
steps:
|
|
- name: Check out code into the workspace
|
|
uses: actions/checkout@v2
|
|
- name: Run PHPStan
|
|
uses: docker://oskarstark/phpstan-ga:1.8.0
|
|
with:
|
|
args: analyse src -c phpstan.neon --memory-limit=1G --no-progress
|
|
|