Compare commits
8 Commits
feature/co
...
update-act
| Author | SHA1 | Date | |
|---|---|---|---|
| caed38915a | |||
| c533b32759 | |||
| aaa3bfde78 | |||
|
4c4788aa6e
|
|||
| ff2e5816b0 | |||
| ce508a66d5 | |||
| 74bc98d49d | |||
| d459669371 |
@@ -1,6 +1,10 @@
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
image:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: git.qlic.nl/qlic/quality:php8.3
|
||||||
username:
|
username:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@@ -13,6 +17,18 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: '--verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader --ignore-platform-reqs --no-scripts'
|
default: '--verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader --ignore-platform-reqs --no-scripts'
|
||||||
|
composer-audit-args:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: '--abandoned fail'
|
||||||
|
phpstan-args:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: '--memory-limit=2G'
|
||||||
|
phpcs-args:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: '--diff --dry-run'
|
||||||
environment-path:
|
environment-path:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@@ -22,7 +38,7 @@ jobs:
|
|||||||
quality:
|
quality:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
container:
|
container:
|
||||||
image: git.qlic.nl/qlic/quality:latest
|
image: ${{ inputs.image }}
|
||||||
credentials:
|
credentials:
|
||||||
username: ${{ inputs.username }}
|
username: ${{ inputs.username }}
|
||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
@@ -33,13 +49,13 @@ jobs:
|
|||||||
args: ${{ inputs.composer-args }}
|
args: ${{ inputs.composer-args }}
|
||||||
|
|
||||||
- name: Cache PHPStan
|
- name: Cache PHPStan
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: .phpstan
|
path: .phpstan
|
||||||
key: phpstan-${{ hashFiles('composer.lock', 'phpstan.dist.neon') }}
|
key: phpstan-${{ hashFiles('composer.lock', 'phpstan.dist.neon') }}
|
||||||
|
|
||||||
- name: Cache PHP CS Fixer
|
- name: Cache PHP CS Fixer
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: .php-cs-fixer.cache
|
path: .php-cs-fixer.cache
|
||||||
key: phpcs-${{ hashFiles('composer.lock', '.php-cs-fixer.dist.php') }}
|
key: phpcs-${{ hashFiles('composer.lock', '.php-cs-fixer.dist.php') }}
|
||||||
@@ -51,10 +67,10 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run PHPStan
|
- name: Run PHPStan
|
||||||
run: ./vendor/bin/phpstan analyse --memory-limit=2G
|
run: ./vendor/bin/phpstan analyse ${{ inputs.phpstan-args }}
|
||||||
|
|
||||||
- name: Run php cs fixer
|
- name: Run php cs fixer
|
||||||
run: ./vendor/bin/php-cs-fixer fix --diff --dry-run
|
run: ./vendor/bin/php-cs-fixer fix ${{ inputs.phpcs-args }}
|
||||||
|
|
||||||
- name: Run audit
|
- name: Run audit
|
||||||
run: composer audit
|
run: composer audit ${{ inputs.composer-audit-args }}
|
||||||
|
|||||||
Reference in New Issue
Block a user