|
5 | 5 | push: ~ |
6 | 6 | schedule: |
7 | 7 | # Do not make it the first of the month and/or midnight since it is a very busy time |
8 | | - - cron: "10 10 5 * *" |
| 8 | + - cron: "* 10 5 * *" |
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | tests: |
12 | | - runs-on: ubuntu-latest |
13 | | - continue-on-error: ${{ matrix.can-fail }} |
| 12 | + runs-on: "ubuntu-latest" |
| 13 | + continue-on-error: "${{ matrix.can-fail }}" |
14 | 14 | strategy: |
15 | 15 | fail-fast: false |
16 | 16 | matrix: |
17 | | - php: ['8.1', '8.2', '8.3', '8.4'] |
18 | | - symfony: ['6.4.*', '7.1.*', '7.2.*'] |
19 | | - doctrine-orm: ['^2.14', '^3.0'] |
20 | | - composer-flags: ['--prefer-stable'] |
| 17 | + php: ["8.1", "8.2", "8.3", "8.4"] |
| 18 | + symfony: ["6.4.*", "7.1.*", "7.2.*"] |
| 19 | + doctrine-orm: ["^2.14", "^3.0"] |
| 20 | + dependency-versions: ["highest"] |
| 21 | + composer-stable: ["1"] |
21 | 22 | can-fail: [false] |
22 | 23 | include: |
23 | 24 | - php: "8.1" |
24 | 25 | symfony: "6.4.*" |
25 | 26 | doctrine-orm: "^2.14" |
26 | | - composer-flags: '--prefer-stable --prefer-lowest' |
| 27 | + dependency-versions: "lowest" |
| 28 | + composer-stable: "1" |
27 | 29 | can-fail: false |
28 | 30 | exclude: |
29 | 31 | - php: "8.1" |
30 | 32 | symfony: "7.1.*" |
31 | 33 | - php: "8.1" |
32 | 34 | symfony: "7.2.*" |
33 | 35 |
|
34 | | - name: "PHP ${{ matrix.php }} - Doctrine ${{ matrix.doctrine-orm }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}" |
35 | | - |
36 | | - env: |
37 | | - SYMFONY_REQUIRE: ${{ matrix.symfony }} |
| 36 | + name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }} - Doctrine ORM ${{ matrix.doctrine-orm }} - Composer ${{ matrix.dependency-versions }}" |
38 | 37 |
|
39 | 38 | steps: |
40 | 39 | - name: "checkout" |
41 | 40 | uses: "actions/checkout@v4" |
42 | 41 |
|
43 | | - - name: "build the PHP environment" |
44 | | - run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} --build-arg XDEBUG_VERSION='3.4.0' php" |
| 42 | + - name: "setup php" |
| 43 | + uses: "shivammathur/setup-php@v2" |
| 44 | + with: |
| 45 | + php-version: "${{ matrix.php }}" |
| 46 | + tools: "composer, flex" |
45 | 47 |
|
46 | 48 | - name: "require specific Doctrine ORM version" |
47 | | - run: "dev/bin/php composer require --ansi ${{ matrix.composer-flags }} --no-install doctrine/orm:${{ matrix.doctrine-orm }}" |
48 | | - |
49 | | - - name: "install dependencies" |
50 | | - run: "dev/bin/php composer update --ansi ${{ matrix.composer-flags }}" |
| 49 | + env: |
| 50 | + COMPOSER_PREFER_STABLE: "${{ matrix.composer-stable }}" |
| 51 | + run: "composer require --no-scripts --no-install --dev doctrine/orm:${{ matrix.doctrine-orm }} --ansi" |
| 52 | + |
| 53 | + - name: "install composer dependencies" |
| 54 | + uses: "ramsey/composer-install@v3" |
| 55 | + env: |
| 56 | + SYMFONY_REQUIRE: "${{ matrix.symfony }}" |
| 57 | + COMPOSER_PREFER_STABLE: "${{ matrix.composer-stable }}" |
| 58 | + with: |
| 59 | + dependency-versions: "${{ matrix.dependency-versions }}" |
51 | 60 |
|
52 | 61 | - name: "run unit tests" |
53 | | - run: "dev/bin/php-test vendor/bin/simple-phpunit --colors=always" |
54 | | - |
55 | | - - name: clear docker volumes |
56 | | - if: ${{ always() }} |
57 | | - run: dev/bin/docker-compose down --volumes |
| 62 | + run: "vendor/bin/simple-phpunit --colors=always" |
0 commit comments