Compare commits
1 Commits
main
...
feature/ad
Author | SHA1 | Date | |
---|---|---|---|
3373bf4518 |
@ -17,26 +17,18 @@ 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
|
||||
default: .env.example
|
||||
secrets:
|
||||
composer-auth-json:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
runs-on: ubuntu-24.04
|
||||
runs-on: 'ubuntu-24.04'
|
||||
container:
|
||||
image: ${{ inputs.image }}
|
||||
credentials:
|
||||
@ -47,6 +39,8 @@ jobs:
|
||||
uses: https://git.qlic.nl/actions/setup-composer@v1
|
||||
with:
|
||||
args: ${{ inputs.composer-args }}
|
||||
env:
|
||||
COMPOSER_AUTH: ${{ secrets.composer-auth-json }}
|
||||
|
||||
- name: Cache PHPStan
|
||||
uses: actions/cache@v4
|
||||
@ -67,10 +61,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
|
Loading…
x
Reference in New Issue
Block a user