Skip to content

Commit

Permalink
Run Composer autoload on phpunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smileBeda committed May 23, 2024
1 parent 03b3a4e commit 6ff966e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
extensions: mbstring, dom, fileinfo, mysql # Adjust to your project's needs
coverage: xdebug

- name: Install dependencies
run: composer install --no-dev --optimize-autoloader

- name: Modify Autoloader Paths
run: |
sed -i 's|/src/src/|/src/|g' vendor/composer/autoload_classmap.php
sed -i 's|/src/src/|/src/|g' vendor/composer/autoload_static.php
- name: Install PHPUnit
run: composer global require --dev phpunit/phpunit:^9.0

Expand Down

0 comments on commit 6ff966e

Please sign in to comment.