1
0
mirror of synced 2024-11-24 22:36:06 +03:00
api-client-php/.github/workflows/code_quality.yml
Neur0toxine 123a59fdf8
php 8.1 support (#138)
* fix #136 php 8.1 support
* update test matrix & phpstan
* fix for the phpstan error that should work
* lock serializer version to prevent unexpected updates
2022-02-17 13:50:36 +03:00

43 lines
1.1 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
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
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'
target_directory: 'src'
phpstan:
name: PHPStan
runs-on: ubuntu-18.04
steps:
- name: Check out code into the workspace
uses: actions/checkout@v2
- name: Run PHPStan
uses: docker://oskarstark/phpstan-ga:1.0.1
with:
args: analyse src -c phpstan.neon --memory-limit=1G --no-progress