Skip to content

Commit

Permalink
cleaning up the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed Oct 25, 2024
1 parent 361e041 commit 8f11cb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ jobs:
run: php artisan migrate
working-directory: ./laravel_app

- name: Show contents of composer.json before removing PHPUnit
run: cat composer.json
working-directory: ./laravel_app

- name: Remove PHPUnit from composer.json and clean up commas
- name: Clean up composer.json - Remove PHPUnit & trailing commas
run: |
sed -i '/"phpunit\/phpunit"/d' composer.json
sed -i '/"nunomaduro\/collision": "\^8.0",/s/,$//' composer.json
sed -i 's/,\(\s*\}\)/\1/' composer.json
working-directory: ./laravel_app

- name: Validate composer.json format
run: php -r "json_decode(file_get_contents('composer.json')) ?: exit(1);"
working-directory: ./laravel_app

- name: Remove composer.lock and re-run composer install
run: |
rm composer.lock
Expand Down

0 comments on commit 8f11cb9

Please sign in to comment.