From 11271395e238ede1e743b502ed6a89e91b57ff1b Mon Sep 17 00:00:00 2001 From: Denny Lubitz Date: Wed, 11 Dec 2024 20:35:08 +0100 Subject: [PATCH] TASK: Set package branch name as composer dependency --- .github/workflows/tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 39de42f..67e6d18 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,6 +27,9 @@ 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 + - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -49,7 +52,8 @@ jobs: 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 } }' - composer require --no-update --no-interaction neos/seo:@dev + composer require --no-update --no-interaction neos/seo:"dev-build as dev-${PACKAGE_TARGET_VERSION}" + composer require --dev --no-update --no-interaction phpstan/phpstan:^1.10 - name: Install dependencies