diff --git a/.github/workflows/functionaltests.yml b/.github/workflows/functionaltests.yml index 7ac5b2f..e0e1e8b 100644 --- a/.github/workflows/functionaltests.yml +++ b/.github/workflows/functionaltests.yml @@ -29,7 +29,7 @@ jobs: extensions: mbstring, xml, json, zlib, iconv, intl, pdo_sqlite ini-values: opcache.fast_shutdown=0 - - name: Cache composer dependencies + - name: "[1/4] Create composer project - Cache composer dependencies" uses: actions/cache@v1 with: path: ~/.composer/cache @@ -37,8 +37,17 @@ jobs: restore-keys: | php-${{ matrix.php-version }}-flow-${{ matrix.flow-version }}-composer- php-${{ matrix.php-version }}-flow- - - name: Install composer dependencies - run: composer create-project neos/flow-base-distribution ${{ env.FLOW_DIST_FOLDER }} --prefer-dist --no-progress "^${{ matrix.flow-version }}" + + - name: "[2/4] Create composer project - No install" + run: composer create-project neos/flow-base-distribution ${{ env.FLOW_DIST_FOLDER }} --prefer-dist --no-progress --no-install "^${{ matrix.flow-version }}" + + - name: "[3/4] Create composer project - Require behat in compatible version" + run: composer require --dev --no-update "neos/behat:@dev" + working-directory: ${{ env.FLOW_DIST_FOLDER }} + + - name: "[4/4] Create composer project - Install project" + run: composer install + working-directory: ${{ env.FLOW_DIST_FOLDER }} - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 3f26b16..31f4190 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -29,7 +29,7 @@ jobs: extensions: mbstring, xml, json, zlib, iconv, intl, pdo_sqlite ini-values: opcache.fast_shutdown=0 - - name: Cache composer dependencies + - name: "[1/4] Create composer project - Cache composer dependencies" uses: actions/cache@v1 with: path: ~/.composer/cache @@ -37,8 +37,17 @@ jobs: restore-keys: | php-${{ matrix.php-version }}-flow-${{ matrix.flow-version }}-composer- php-${{ matrix.php-version }}-flow- - - name: Install composer dependencies - run: composer create-project neos/flow-base-distribution ${{ env.FLOW_DIST_FOLDER }} --prefer-dist --no-progress "^${{ matrix.flow-version }}" + + - name: "[2/4] Create composer project - No install" + run: composer create-project neos/flow-base-distribution ${{ env.FLOW_DIST_FOLDER }} --prefer-dist --no-progress --no-install "^${{ matrix.flow-version }}" + + - name: "[3/4] Create composer project - Require behat in compatible version" + run: composer require --dev --no-update "neos/behat:@dev" + working-directory: ${{ env.FLOW_DIST_FOLDER }} + + - name: "[4/4] Create composer project - Install project" + run: composer install + working-directory: ${{ env.FLOW_DIST_FOLDER }} - name: Checkout code uses: actions/checkout@v2