Skip to content

Commit

Permalink
Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Dec 14, 2024
1 parent f27ba54 commit 5492304
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: zip

- name: Cache composer dependencies
uses: actions/cache@v3
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ PHPUNIT_CMD = vendor/bin/phpunit -c /app/src/phpunit.xml.dist $(ARGS)

phpunit:
ifeq ($(CI),true)
# In CI: run PHPUnit directly (assuming dependencies already installed)
cd src && ../vendor/bin/phpunit -c phpunit.xml.dist $(ARGS)
# In CI: run PHPUnit directly
cd src && vendor/bin/phpunit -c phpunit.xml.dist $(ARGS)
else
# Locally: run PHPunit in Docker
$(call execPhpAlpine,$(PHPUNIT_CMD))
# Locally: run via Docker
$(call execPhpAlpine,/app/src/vendor/bin/phpunit -c /app/src/phpunit.xml.dist $(ARGS))
endif

phpunit-all:
Expand Down

0 comments on commit 5492304

Please sign in to comment.