Skip to content

Commit

Permalink
improv: adjust test suite steps
Browse files Browse the repository at this point in the history
  • Loading branch information
beesaferoot committed Dec 18, 2024
1 parent 9208959 commit 7fd0bde
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ jobs:

# Setup GitHub environment
- name: Copy .env
run: php -r "file_exists('./dev/.env.micropowermanager-backend') || copy('./dev/.env.micropowermanager-backend', '.env');"
run: |
php -r "file_exists('./dev/.env.micropowermanager-backend') || copy('./dev/.env.micropowermanager-backend', '.env');"
if [ -f .env ]; then
echo ".env file successfully copied. Contents:"
cat .env
else
echo "Error: .env file not found after copy attempt."
exit 1
fi
# Install composer dependencies
- name: Install Composer Dependencies
Expand All @@ -53,10 +61,8 @@ jobs:
# working-directory: ./src/backend

# Run database migrations for testing
# - name: Run Migrations
# run: |
# php artisan migrate --env=.env
# php artisan migrate-tenant --env=.env
- name: Run Migrations
run: php artisan migrate --env=.env

# Run PHPUnit tests with coverage
- name: Execute tests (Unit and Feature tests) via PHPUnit
Expand Down

0 comments on commit 7fd0bde

Please sign in to comment.