Skip to content

Releases: NxtLvLSoftware/setup-phpstan-action

v1.0.2

30 Jan 17:40
aa44652
Compare
Choose a tag to compare

Fix potential problems with GitHub authentication & remove non-essential files from the release build that aren't required for the action to run.

v1.0.1

25 Jan 06:59
Compare
Choose a tag to compare

Include all files output by https://github.com/vercel/ncc builds in dist.

v1.0.0

25 Jan 05:39
Compare
Choose a tag to compare

GitHub action for installing PHPStan in actions workflows.

  • Allows passing version string and installing from github releases into path/env.
  • Allows passing existing executable path and installing into path/env.
  • Supports caching for version string and existing binary installations.

Either version or path must be specified.

How to use

Attempt to download any PHPStan release by providing the version:

name: My PHPStan Workflow
on: [push]
jobs:
  setup-phpstan:
    name: Setup PHPStan
    runs-on: ubuntu-latest
    steps:
      - uses: nxtlvlsoftware/setup-phpstan-action@v1
        with:
          version: '1.8.2'
          install-path: './bin'

Or provide the path to an existing PHPStan installation/binary:

name: My PHPStan Workflow
on: [push]
jobs:
  setup-phpstan:
    name: Setup PHPStan
    runs-on: ubuntu-latest
    steps:
      - uses: nxtlvlsoftware/setup-phpstan-action@v1
        with:
          path: 'path/to/your/phpstan.phar'
          install-path: './bin'

License

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