Skip to content

chore: update dev tools and allow Symfony 8 #40

chore: update dev tools and allow Symfony 8

chore: update dev tools and allow Symfony 8 #40

Workflow file for this run

name: Bundle installation
on: [push, pull_request]
jobs:
integration-tests:
name: Installation in Symfony ${{ matrix.symfony }} with PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.4', '8.5']
symfony: ['6.4', '7.4', '8.0']
steps:
# Setup
- name: Checkout
uses: actions/checkout@v2
with:
path: 'project'
- name: PHP setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, xml, ctype, iconv, intl
coverage: xdebug
# Install symfony app
- name: Create Symfony app
run: |
composer create-project --no-install symfony/skeleton:"${{ matrix.symfony }}.*" app
composer config -d ./app repositories.messenger-azure-bundle path ../project
composer config -d ./app minimum-stability dev
composer config -d ./app --no-interaction allow-plugins.symfony/flex true
composer install -d ./app
# Cache Composer dependencies
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config -d ./app cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
# Install the bundle
- name: Install AymdevMessengerAzureBundle
run: composer require -d ./app --prefer-source aymdev/messenger-azure-bundle:"*"