From 8e18821812a94a54d75f2dccc60ad3ed4fdbcc4e Mon Sep 17 00:00:00 2001 From: aslan Date: Sat, 10 Feb 2024 14:36:40 +0300 Subject: [PATCH] fix CI --- .gitea/workflows/php.yml | 6 +++--- Makefile | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/php.yml b/.gitea/workflows/php.yml index 04e7979..e8372df 100644 --- a/.gitea/workflows/php.yml +++ b/.gitea/workflows/php.yml @@ -21,7 +21,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up PHP ${{ matrix.php-version }} + - name: Set up PHP ${{ matrix.php-version }} with extensions and tools uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} @@ -51,7 +51,7 @@ jobs: run: composer install # will work - name: Setup project - run: make setup + run: make setup-test - name: Check lint run: make lint @@ -63,7 +63,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - name: Checkout + - name: deploy to test server uses: appleboy/ssh-action@v1.0.3 with: diff --git a/Makefile b/Makefile index f53413e..747b787 100644 --- a/Makefile +++ b/Makefile @@ -16,11 +16,12 @@ setup: make ide-helper setup-test: - composer install --no-plugins --no-scripts + composer install + cp -n .env.example .env php artisan key:gen --ansi rm database/database.sqlite touch database/database.sqlite - php artisan migrate:refresh + php artisan migrate php artisan db:seed npm ci npm run build