Skip to content

Commit

Permalink
[BUGFIX] Explicitly set working dir for Composer commands
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskienast committed Jan 15, 2024
1 parent a6a6762 commit fa55edc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/legacy-hook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ jobs:
restore-keys: |
${{ runner.os }}-composer-
- name: Change working dir
run:
cd legacy_hook

- name: Install dependencies (Composer)
run: composer install --prefer-dist --no-progress --no-interaction --ansi
run: composer install --working-dir=./legacy_hook --prefer-dist --no-progress --no-interaction --ansi
env:
COMPOSER_AUTH: '{
"http-basic": {
Expand All @@ -67,7 +63,7 @@ jobs:
}
}'
- name: Tests
run: composer t3g:test
run: composer --working-dir=./legacy_hook t3g:test

deployment:
name: 'Deployment'
Expand Down
2 changes: 1 addition & 1 deletion .mage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ magephp:
hosts:
- prod.docs.typo3.com
pre-deploy:
- composer/install: { flags: "--no-dev --no-progress --optimize-autoloader --ansi"}
- composer/install: { flags: "--working-dir=./legacy_hook --no-dev --no-progress --optimize-autoloader --ansi"}
on-deploy:
on-release:
post-release:
Expand Down

0 comments on commit fa55edc

Please sign in to comment.