PHP Stan environment step added #1
@ -9,6 +9,10 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
default: ${{ vars.REGISTRY_PASSWORD }}
|
||||
environment_path:
|
||||
required: false
|
||||
type: string
|
||||
default: .env.phpstan
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
@ -22,6 +26,12 @@ jobs:
|
||||
- name: Setup composer
|
||||
uses: https://git.qlic.nl/actions/setup-composer@v1
|
||||
|
||||
- name: Copy ${{ inputs.environment_path }} to .env if it exists
|
||||
run: |
|
||||
if [ -f ${{ inputs.environment_path }} ]; then
|
||||
cp ${{ inputs.environment_path }} .env
|
||||
fi
|
||||
|
||||
- name: Run PHPStan
|
||||
run: ./vendor/bin/phpstan analyse --memory-limit=2G
|
||||
|
||||
@ -29,4 +39,4 @@ jobs:
|
||||
run: ./vendor/bin/php-cs-fixer fix --diff --dry-run
|
||||
|
||||
- name: Run audit
|
||||
run: composer audit
|
||||
run: composer audit
|
Loading…
x
Reference in New Issue
Block a user