add setup scenario for CI
This commit is contained in:
parent
2eca5776b9
commit
ad97ed8a43
|
@ -51,7 +51,7 @@ jobs:
|
||||||
run: composer install
|
run: composer install
|
||||||
|
|
||||||
- name: Setup project
|
- name: Setup project
|
||||||
run: make setup-test
|
run: make setup-ci
|
||||||
|
|
||||||
- name: Check lint
|
- name: Check lint
|
||||||
run: make lint
|
run: make lint
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -15,6 +15,16 @@ setup:
|
||||||
npm run build
|
npm run build
|
||||||
make ide-helper
|
make ide-helper
|
||||||
|
|
||||||
|
setup-ci:
|
||||||
|
composer install
|
||||||
|
cp -n .env.example .env
|
||||||
|
php artisan key:gen --ansi
|
||||||
|
touch database/database.sqlite
|
||||||
|
php artisan migrate:refresh
|
||||||
|
php artisan db:seed
|
||||||
|
npm ci
|
||||||
|
npm run build
|
||||||
|
|
||||||
setup-prod:
|
setup-prod:
|
||||||
composer install
|
composer install
|
||||||
npm ci
|
npm ci
|
||||||
|
|
Loading…
Reference in New Issue