From ad97ed8a432b3e71df1a3ea7d401bf9b3412ff08 Mon Sep 17 00:00:00 2001 From: aslan Date: Tue, 12 Mar 2024 09:43:22 +0300 Subject: [PATCH] add setup scenario for CI --- .gitea/workflows/php.yml | 2 +- Makefile | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/php.yml b/.gitea/workflows/php.yml index 0caf2cc..eecd9a7 100644 --- a/.gitea/workflows/php.yml +++ b/.gitea/workflows/php.yml @@ -51,7 +51,7 @@ jobs: run: composer install - name: Setup project - run: make setup-test + run: make setup-ci - name: Check lint run: make lint diff --git a/Makefile b/Makefile index 4a7b1c2..c638179 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,16 @@ setup: npm run build 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: composer install npm ci