Compare commits
2 Commits
main
...
feature/co
Author | SHA1 | Date | |
---|---|---|---|
5ab8083cfb | |||
e399e3a289 |
@ -1,10 +1,6 @@
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
image:
|
||||
required: false
|
||||
type: string
|
||||
default: git.qlic.nl/qlic/quality:php8.3
|
||||
username:
|
||||
required: false
|
||||
type: string
|
||||
@ -17,18 +13,6 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
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:
|
||||
required: false
|
||||
type: string
|
||||
@ -38,11 +22,17 @@ jobs:
|
||||
quality:
|
||||
runs-on: ubuntu-24.04
|
||||
container:
|
||||
image: ${{ inputs.image }}
|
||||
image: git.qlic.nl/qlic/quality:latest
|
||||
credentials:
|
||||
username: ${{ inputs.username }}
|
||||
password: ${{ inputs.password }}
|
||||
steps:
|
||||
- name: Setup composer authentication
|
||||
run: |
|
||||
if [ -f ${{ secrets.COMPOSER_AUTH_JSON }} ]
|
||||
cp ${{ secrets.COMPOSER_AUTH_JSON }} ~/.composer/auth.json
|
||||
fi
|
||||
|
||||
- name: Setup composer
|
||||
uses: https://git.qlic.nl/actions/setup-composer@v1
|
||||
with:
|
||||
@ -67,10 +57,10 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Run PHPStan
|
||||
run: ./vendor/bin/phpstan analyse ${{ inputs.phpstan-args }}
|
||||
run: ./vendor/bin/phpstan analyse --memory-limit=2G
|
||||
|
||||
- name: Run php cs fixer
|
||||
run: ./vendor/bin/php-cs-fixer fix ${{ inputs.phpcs-args }}
|
||||
|
||||
run: ./vendor/bin/php-cs-fixer fix --diff --dry-run
|
||||
|
||||
- name: Run audit
|
||||
run: composer audit ${{ inputs.composer-audit-args }}
|
||||
run: composer audit
|
||||
|
Reference in New Issue
Block a user