Skip to content

Commit

Permalink
ci: update test workflow to create env and database files
Browse files Browse the repository at this point in the history
  • Loading branch information
janyksteenbeek committed Jan 2, 2025
1 parent a287ea0 commit d61dfa0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d61dfa0

Please sign in to comment.