Compare commits
1 Commits
main
...
more-cache
Author | SHA1 | Date | |
---|---|---|---|
b7dfbc53b9 |
@ -9,10 +9,10 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ${{ vars.REGISTRY_PASSWORD }}
|
default: ${{ vars.REGISTRY_PASSWORD }}
|
||||||
environment_path:
|
environment-path:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: .env.phpstan
|
default: .env.example
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
quality:
|
quality:
|
||||||
@ -26,10 +26,22 @@ jobs:
|
|||||||
- name: Setup composer
|
- name: Setup composer
|
||||||
uses: https://git.qlic.nl/actions/setup-composer@v1
|
uses: https://git.qlic.nl/actions/setup-composer@v1
|
||||||
|
|
||||||
- name: Copy ${{ inputs.environment_path }} to .env if it exists
|
- name: Cache PHPStan
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: .phpstan
|
||||||
|
key: phpstan-${{ hashFiles('composer.lock', 'phpstan.dist.neon') }}
|
||||||
|
|
||||||
|
- name: Cache PHP CS Fixer
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: .php-cs-fixer.cache
|
||||||
|
key: phpcs-${{ hashFiles('composer.lock', '.php-cs-fixer.dist.php') }}
|
||||||
|
|
||||||
|
- name: Copy ${{ inputs.environment-path }} to .env if it exists
|
||||||
run: |
|
run: |
|
||||||
if [ -f ${{ inputs.environment_path }} ]; then
|
if [ -f ${{ inputs.environment-path }} ]; then
|
||||||
cp ${{ inputs.environment_path }} .env
|
cp ${{ inputs.environment-path }} .env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run PHPStan
|
- name: Run PHPStan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user