Skip to content

Commit

Permalink
fix test suite workflow #108
Browse files Browse the repository at this point in the history
  • Loading branch information
beesaferoot committed Dec 15, 2024
1 parent eb97959 commit e77431a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/test_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Code Test Suite

on:
push:
branches: ["main"]
branches: [main]
pull_request:
branches: ["main"]
branches: [main]

jobs:
laravel-tests:
Expand Down Expand Up @@ -37,16 +37,19 @@ jobs:
composer install --no-interaction --prefer-dist
working-directory: ./src/backend

# # Generate application key
# - name: Generate key
# run: php artisan key:generate
# working-directory: ./src/backend
# # Generate application key
# - name: Generate key
# run: php artisan key:generate
# working-directory: ./src/backend

# Run database migrations for testing
- name: Run Migrations
run: |
php artisan migrate
php artisan migrate-tenant
php artisan migrate --env=.env
php artisan migrate-tenant --env=.env
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
working-directory: ./src/backend

# Run PHPUnit tests with coverage
Expand Down

0 comments on commit e77431a

Please sign in to comment.