Compare commits
2 Commits
feature/ad
...
v1
Author | SHA1 | Date | |
---|---|---|---|
aaa3bfde78 | |||
4c4788aa6e
|
@ -17,18 +17,26 @@ 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
|
||||||
default: .env.example
|
default: .env.example
|
||||||
secrets:
|
|
||||||
composer-auth-json:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
quality:
|
quality:
|
||||||
runs-on: 'ubuntu-24.04'
|
runs-on: ubuntu-24.04
|
||||||
container:
|
container:
|
||||||
image: ${{ inputs.image }}
|
image: ${{ inputs.image }}
|
||||||
credentials:
|
credentials:
|
||||||
@ -39,8 +47,6 @@ jobs:
|
|||||||
uses: https://git.qlic.nl/actions/setup-composer@v1
|
uses: https://git.qlic.nl/actions/setup-composer@v1
|
||||||
with:
|
with:
|
||||||
args: ${{ inputs.composer-args }}
|
args: ${{ inputs.composer-args }}
|
||||||
env:
|
|
||||||
COMPOSER_AUTH: ${{ secrets.composer-auth-json }}
|
|
||||||
|
|
||||||
- name: Cache PHPStan
|
- name: Cache PHPStan
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@ -61,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