From fa55edc0a3bbae654a79dd55b87d8ba52b1e69e7 Mon Sep 17 00:00:00 2001 From: Andreas Kienast Date: Mon, 15 Jan 2024 14:59:00 +0100 Subject: [PATCH] [BUGFIX] Explicitly set working dir for Composer commands --- .github/workflows/legacy-hook.yml | 8 ++------ .mage.yml | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/legacy-hook.yml b/.github/workflows/legacy-hook.yml index 6f3673f..4c2409f 100644 --- a/.github/workflows/legacy-hook.yml +++ b/.github/workflows/legacy-hook.yml @@ -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": { @@ -67,7 +63,7 @@ jobs: } }' - name: Tests - run: composer t3g:test + run: composer --working-dir=./legacy_hook t3g:test deployment: name: 'Deployment' diff --git a/.mage.yml b/.mage.yml index e9c53b0..229834a 100644 --- a/.mage.yml +++ b/.mage.yml @@ -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: