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.