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