32 lines
637 B
YAML
32 lines
637 B
YAML
|
stages:
|
||
|
- prepare
|
||
|
- test
|
||
|
|
||
|
prepare:composer-install:
|
||
|
stage: prepare
|
||
|
tags:
|
||
|
- prepare
|
||
|
image: composer:2.4
|
||
|
script:
|
||
|
- echo "Start composer install"
|
||
|
- composer install --no-scripts --verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader
|
||
|
artifacts:
|
||
|
expire_in: 1h
|
||
|
paths:
|
||
|
- composer.lock
|
||
|
- vendor/
|
||
|
interruptible: true
|
||
|
|
||
|
test:composer-security-check:
|
||
|
stage: test
|
||
|
tags:
|
||
|
- test
|
||
|
needs:
|
||
|
- job: prepare:composer-install
|
||
|
artifacts: true
|
||
|
image: composer:2.4
|
||
|
script:
|
||
|
- echo "Start package security check"
|
||
|
- composer security-checker
|
||
|
interruptible: true
|