Skip to content

Instantly share code, notes, and snippets.

@xxdannilinxx
Last active May 15, 2024 23:30
name: PHP Linting
on:
pull_request:
branches: ["master"]
permissions:
contents: read
jobs:
build:
name: PHP Lint
runs-on: ubuntu-latest
steps:
- name: Copying test repository
uses: actions/checkout@v3
- name: Run php lint
uses: StephaneBour/actions-php-lint@8.0
- name: Run php check code with reviewdog
uses: GeneaLabs/action-reviewdog-phpstan@1.1.2
with:
level: "error"
fail_on_error: "true"
phpstan_level: 4
reporter: "github-pr-review"
target_directory: "./"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment