diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml new file mode 100644 index 0000000..191b169 --- /dev/null +++ b/.github/workflows/phpstan.yml @@ -0,0 +1,21 @@ +# Run PHPStan and comment on the pull request with any issues. +# +# This file is managed in https://github.com/happyprime/projects +name: PHPStan (Default, PHP 8.3) + +on: pull_request + +# The GITHUB_TOKEN used by Dependabot has read-only permissions by default. We +# provide write permissions to this workflow so that comments can be left on +# the pull request. +# +# @see https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#changing-github_token-permissions +permissions: + contents: read + pull-requests: write + +jobs: + call-workflow: + uses: happyprime/workflows/.github/workflows/phpstan.yml@trunk + with: + php-version: '8.3'