Add node-build-job in order to create mix-manifest
This commit is contained in:
parent
02b487191c
commit
1d4af01bcf
@ -22,15 +22,34 @@ php-build-job:
|
|||||||
paths:
|
paths:
|
||||||
- vendor/
|
- vendor/
|
||||||
|
|
||||||
php-test-job:
|
node-build-job:
|
||||||
|
stage: build
|
||||||
|
image: node:16
|
||||||
|
script:
|
||||||
|
- npm install --global yarn
|
||||||
|
- yarn
|
||||||
|
- yarn dev
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public/js
|
||||||
|
- public/css
|
||||||
|
- public/fonts
|
||||||
|
- public/mix-manifest.json
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
|
||||||
|
test-job:
|
||||||
stage: test
|
stage: test
|
||||||
image: php:8-cli
|
image: php:8-cli
|
||||||
services:
|
services:
|
||||||
- mysql:5
|
- mysql:5
|
||||||
needs:
|
needs:
|
||||||
- php-build-job
|
- php-build-job
|
||||||
|
- node-build-job
|
||||||
dependencies:
|
dependencies:
|
||||||
- php-build-job
|
- php-build-job
|
||||||
|
- node-build-job
|
||||||
script:
|
script:
|
||||||
- pecl install xdebug
|
- pecl install xdebug
|
||||||
- echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
|
- echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
@ -41,10 +60,10 @@ php-test-job:
|
|||||||
- export DB_DATABASE="$MYSQL_DATABASE"
|
- export DB_DATABASE="$MYSQL_DATABASE"
|
||||||
- export DB_USERNAME=root
|
- export DB_USERNAME=root
|
||||||
- export DB_PASSWORD="$MYSQL_ROOT_PASSWORD"
|
- export DB_PASSWORD="$MYSQL_ROOT_PASSWORD"
|
||||||
- php artisan test --coverage-cobertura code-coverage.xml
|
- php artisan test --coverage-cobertura php-coverage.xml
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
cobertura: code-coverage.xml
|
cobertura: php-coverage.xml
|
||||||
|
|
||||||
docker-auth-job:
|
docker-auth-job:
|
||||||
stage: docker
|
stage: docker
|
||||||
@ -66,7 +85,7 @@ docker-build-job:
|
|||||||
refs:
|
refs:
|
||||||
- master
|
- master
|
||||||
needs:
|
needs:
|
||||||
- php-test-job
|
- test-job
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user