diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 39de42f..acbbcca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,6 +11,7 @@ jobs: build: env: FLOW_PATH_ROOT: ../neos-base-distribution + PACKAGE_FOLDER: neos-seo runs-on: ubuntu-latest @@ -27,6 +28,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Set package branch name + run: echo "PACKAGE_TARGET_VERSION=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV + working-directory: . + - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -48,7 +53,9 @@ jobs: git clone --depth 1 --branch ${{ matrix.neos-version }} https://github.com/neos/neos-development-distribution.git ${FLOW_PATH_ROOT} cd ${FLOW_PATH_ROOT} composer config --no-plugins allow-plugins.neos/composer-plugin true - composer config repositories.package '{ "type": "path", "url": "../neos-seo", "options": { "symlink": false } }' + + git -C ../${{ env.PACKAGE_FOLDER }} checkout -b ${PACKAGE_TARGET_VERSION} + composer config repositories.package '{ "type": "path", "url": "../${{ env.PACKAGE_FOLDER }}", "options": { "symlink": false } }' composer require --no-update --no-interaction neos/seo:@dev composer require --dev --no-update --no-interaction phpstan/phpstan:^1.10