diff --git a/.github/workflows/callable-qa.yml b/.github/workflows/callable-qa.yml index 0abd2e8e..c55ef4da 100644 --- a/.github/workflows/callable-qa.yml +++ b/.github/workflows/callable-qa.yml @@ -13,21 +13,21 @@ on: find_yaml: required: false type: string - skeleton_74: + skeleton_81: required: false default: symfony/skeleton type: string - skeleton_74_version: + skeleton_81_version: required: false - default: ^5 + default: ^6 type: string - skeleton_81: + skeleton_82: required: false default: symfony/skeleton type: string - skeleton_81_version: + skeleton_82_version: required: false - default: ^6 + default: ^7 type: string secrets: token: @@ -257,21 +257,21 @@ jobs: [[ "" != "$PACKAGES" ]] - - name: Setup PHP 7.4 + name: Setup PHP 8.1 if: "always() && steps.config.outcome == 'success'" uses: shivammathur/setup-php@v2 with: coverage: "none" - php-version: "7.4" + php-version: "8.1" - - name: Create-project with skeleton ^5 + name: Create-project with skeleton ^6 if: "always() && steps.config.outcome == 'success'" run: | set -x php -v - composer create-project --ansi "${{ inputs.skeleton_74 }}:${{ inputs.skeleton_74_version }}" --stability dev skeleton_74 - cd skeleton_74 + composer create-project --ansi "${{ inputs.skeleton_81 }}:${{ inputs.skeleton_81_version }}" --stability dev skeleton_81 + cd skeleton_81 composer config extra.symfony.allow-contrib ${{ inputs.contrib && 'true' || 'false' }} composer config minimum-stability dev export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json @@ -279,28 +279,35 @@ jobs: EXIT_CODE=$? if [[ EXIT_CODE -eq 2 ]]; then - echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 5\n#\n#\n#\n" + echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 6\n#\n#\n#\n" fi exit $EXIT_CODE - - name: Setup PHP 8.1 + name: Setup PHP 8.2 if: "always() && steps.config.outcome == 'success'" uses: shivammathur/setup-php@v2 with: coverage: "none" - php-version: "8.1" + php-version: "8.2" - - name: Create-project with skeleton ^6 + name: Create-project with skeleton ^7 if: "always() && steps.config.outcome == 'success'" run: | set -x php -v - composer create-project --ansi "${{ inputs.skeleton_81 }}:${{ inputs.skeleton_81_version }}" --stability dev skeleton_81 - cd skeleton_81 + composer create-project --ansi "${{ inputs.skeleton_82 }}:${{ inputs.skeleton_82_version }}" --stability dev skeleton_82 + cd skeleton_82 composer config extra.symfony.allow-contrib ${{ inputs.contrib && 'true' || 'false' }} composer config minimum-stability dev export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json composer require -W --ansi $PACKAGES + EXIT_CODE=$? + + if [[ EXIT_CODE -eq 2 ]]; then + echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 7\n#\n#\n#\n" + fi + + exit $EXIT_CODE \ No newline at end of file diff --git a/.github/workflows/callable-watch.yml b/.github/workflows/callable-watch.yml index 3ef7f82b..a08188af 100644 --- a/.github/workflows/callable-watch.yml +++ b/.github/workflows/callable-watch.yml @@ -22,7 +22,7 @@ jobs: - name: Set up PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: 8.2 coverage: none - name: Checkout code