Skip to content

Releases: NxtLvLSoftware/run-phpstan-action

v1.0.2

30 Jan 18:27
2cda95b

Choose a tag to compare

Fix bug that caused phpstan to be invoked with the analyze command only when a path is provided.

v1.0.1

30 Jan 17:38
9f0b808

Choose a tag to compare

Removes non-essential files from the release build that aren't required for the action to run.

v1.0.0

25 Jan 05:46

Choose a tag to compare

GitHub action for running PHPStan in actions workflows.

How to use

Simple analysis if php and phpstan is already configured properly in the action environment (in $PATH):

name: My PHP Test Workflow
on: [push]
jobs:
  test-code:
    name: Run Tests
    runs-on: ubuntu-latest
    steps:
      - uses: nxtlvlsoftware/run-phpstan-action@v1
        with:
          analyse: src
          config: tests/phpstan/action.phpstan.neon
          level: 9

Or provide the paths to existing PHPStan and/or php executables:

name: My PHP Test Workflow
on: [push]
jobs:
  test-code:
    name: Run Tests
    runs-on: ubuntu-latest
    steps:
      - uses: nxtlvlsoftware/run-phpstan-action@v1
        with:
          analyse: src
          config: tests/phpstan/action.phpstan.neon
          level: 9
          php: '/path/to/php/bin'
          phpstan: '/path/to/phpstan.phar'

License

nxtlvlsoftware/run-phpstan-action is open-sourced software licensed under the MIT license.