From d61dfa033b208608d8019640bc5da2c993061a1f Mon Sep 17 00:00:00 2001 From: Janyk Date: Thu, 2 Jan 2025 23:24:48 +0100 Subject: [PATCH] ci: update test workflow to create env and database files --- .github/workflows/test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 680a3e7..221c53b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,8 +16,17 @@ jobs: tools: composer:v2 coverage: xdebug + - name: Create .env file + run: cp .env.example .env + + - name: Create database + run: touch database/database.sqlite + - name: Install Dependencies run: composer install --no-interaction --prefer-dist --optimize-autoloader - - name: Tests + - name: Run migrations + run: php artisan migrate --force + + - name: Run tests run: ./vendor/bin/pest --ci