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 885dd59 commit 4febb85
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,21 @@ jobs:
- name: Copy .env
run: php -r "file_exists('./dev/.env.micropowermanager-backend') || copy('./dev/.env.micropowermanager-backend', '.env');"

# Validate composer.json and composer.lock
- name: Validate composer.json and composer.lock
run: composer validate --strict

# Install Composer dependencies
- name: Install Dependencies
# Install composer dependencies
- name: Install Composer Dependencies
run: |
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
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

# Run database migrations for testing
- name: Run Migrations
run: php artisan migrate --force
working-directory: ./src/backend

# Run PHPUnit tests with coverage
- name: Execute tests (Unit and Feature tests) via PHPUnit
Expand All @@ -58,3 +57,4 @@ jobs:
touch database/database.sqlite
php artisan test --coverage
continue-on-error: true
working-directory: ./src/backend

0 comments on commit 4febb85

Please sign in to comment.