|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - 'master' |
| 8 | + |
| 9 | +jobs: |
| 10 | + php: |
| 11 | + name: "PHP ${{ matrix.php-version }} (${{ matrix.database }}, ${{ matrix.phpcr-transport }}, ${{ matrix.dependency-versions }})" |
| 12 | + runs-on: ubuntu-latest |
| 13 | + |
| 14 | + env: |
| 15 | + KERNEL_CLASS: DTL\\Bundle\\PhpcrMigrations\\Tests\\Resources\\App\\AppKernel |
| 16 | + |
| 17 | + strategy: |
| 18 | + fail-fast: false |
| 19 | + matrix: |
| 20 | + include: |
| 21 | + - php-version: '5.6' |
| 22 | + symfony-version: '2.8.*' |
| 23 | + monolog-version: '^1.0' |
| 24 | + |
| 25 | + - php-version: '5.6' |
| 26 | + symfony-version: '3.4.*' |
| 27 | + monolog-version: '^1.0' |
| 28 | + |
| 29 | + - php-version: '7.0' |
| 30 | + symfony-version: '3.4.*' |
| 31 | + monolog-version: '^1.0' |
| 32 | + |
| 33 | + - php-version: '7.1' |
| 34 | + symfony-version: '4.0.*' |
| 35 | + monolog-version: '^1.0' |
| 36 | + |
| 37 | + - php-version: '7.2' |
| 38 | + symfony-version: '4.1.*' |
| 39 | + monolog-version: '^1.0' |
| 40 | + |
| 41 | + - php-version: '7.3' |
| 42 | + symfony-version: '4.4.*' |
| 43 | + monolog-version: '^1.0' |
| 44 | + |
| 45 | + - php-version: '7.4' |
| 46 | + symfony-version: '5.0.*' |
| 47 | + monolog-version: '^2.0' |
| 48 | + |
| 49 | + - php-version: '8.0' |
| 50 | + symfony-version: '6.0.*' |
| 51 | + monolog-version: '^2.0' |
| 52 | + |
| 53 | + - php-version: '8.1' |
| 54 | + symfony-version: '^6.0' |
| 55 | + monolog-version: '^2.0' |
| 56 | + |
| 57 | + steps: |
| 58 | + - name: Checkout project |
| 59 | + uses: actions/checkout@v2 |
| 60 | + |
| 61 | + - name: Install and configure PHP |
| 62 | + uses: shivammathur/setup-php@v2 |
| 63 | + with: |
| 64 | + php-version: ${{ matrix.php-version }} |
| 65 | + extensions: ctype, iconv, mysql |
| 66 | + tools: composer:v2 |
| 67 | + ini-values: memory_limit=-1 |
| 68 | + coverage: none |
| 69 | + |
| 70 | + - name: Add additional packages |
| 71 | + run: | |
| 72 | + composer require monolog/monolog:${{ matrix.monolog-version }} --no-update |
| 73 | + composer require symfony/symfony:${{ matrix.symfony-version }} --no-update |
| 74 | +
|
| 75 | + - name: Install composer dependencies |
| 76 | + uses: ramsey/composer-install@v1 |
| 77 | + with: |
| 78 | + dependency-versions: ${{matrix.dependency-versions}} |
| 79 | + |
| 80 | + - name: Prepare phpcr odm doctrine dbal |
| 81 | + run: vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal |
| 82 | + |
| 83 | + - name: Run tests |
| 84 | + run: vendor/bin/simple-phpunit |
0 commit comments