[Platform] Split bridges into dedicated packages #3917
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Integration Tests | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'src/*/doc/**' | |
| - 'src/**/*.md' | |
| pull_request: | |
| paths-ignore: | |
| - 'src/*/doc/**' | |
| - 'src/**/*.md' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| REQUIRED_PHP_EXTENSIONS: 'mongodb, redis' | |
| jobs: | |
| examples: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: ['8.2', '8.5'] | |
| dependency-version: [''] | |
| symfony-version: [''] | |
| include: | |
| # lowest deps | |
| - php-version: '8.2' | |
| dependency-version: 'lowest' | |
| # LTS version of Symfony | |
| - php-version: '8.2' | |
| symfony-version: '7.4.*' | |
| env: | |
| SYMFONY_REQUIRE: ${{ matrix.symfony-version || '>=7.4' }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Up the examples services | |
| working-directory: examples | |
| run: docker compose up -d | |
| - name: Configure environment | |
| run: | | |
| echo COLUMNS=120 >> $GITHUB_ENV | |
| echo COMPOSER_UP='composer update ${{ matrix.dependency-version == 'lowest' && '--prefer-lowest --prefer-stable' || '' }} --no-progress --no-interaction --ansi --ignore-platform-req=ext-mongodb' >> $GITHUB_ENV | |
| echo PHPUNIT='vendor/bin/phpunit' >> $GITHUB_ENV | |
| [ 'lowest' = '${{ matrix.dependency-version }}' ] && export SYMFONY_DEPRECATIONS_HELPER=weak | |
| PACKAGES=$(find src/ -mindepth 2 -type f -name composer.json -not -path "*/vendor/*" -printf '%h\n' | sed 's/^src\///' | grep -Ev "examples" | sort | tr '\n' ' ') | |
| echo "Packages: $PACKAGES" | |
| echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: flex | |
| extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" | |
| - name: Install root dependencies | |
| uses: ramsey/composer-install@v3 | |
| - name: Build root packages | |
| run: php .github/build-packages.php | |
| - name: Install root dependencies | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| working-directory: examples | |
| - name: Run commands examples | |
| working-directory: examples | |
| run: | | |
| php commands/stores.php | |
| php commands/message-stores.php | |
| demo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| tools: flex | |
| extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" | |
| - name: Install root dependencies | |
| uses: ramsey/composer-install@v3 | |
| - name: Build root packages | |
| run: php .github/build-packages.php | |
| - name: Install demo dependencies | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| composer-options: "--no-scripts" | |
| working-directory: demo | |
| - name: Link local packages | |
| working-directory: demo | |
| run: ../link | |
| - run: composer run-script auto-scripts --no-interaction | |
| working-directory: demo | |
| - run: bin/console lint:container | |
| working-directory: demo | |
| - name: Run demo tests | |
| working-directory: demo | |
| run: vendor/bin/phpunit |