3434 dependencies :
3535 - " highest"
3636 symfony-version :
37- - " stable "
37+ - " locked "
3838 proxy :
3939 - " lazy-ghost"
4040 include :
4444 mongodb-version : " 6.0"
4545 driver-version : " 1.21.0"
4646 topology : " server"
47- symfony-version : " stable "
47+ symfony-version : " locked "
4848 proxy : " lazy-ghost"
4949 # Test with Symfony 6.4
5050 - topology : " server"
@@ -60,46 +60,62 @@ jobs:
6060 mongodb-version : " 6.0"
6161 driver-version : " stable"
6262 dependencies : " highest"
63- symfony-version : " stable "
63+ symfony-version : " locked "
6464 proxy : " lazy-ghost"
6565 # Test with a 8.0 replica set
6666 - topology : " replica_set"
6767 php-version : " 8.2"
6868 mongodb-version : " 8.0"
6969 driver-version : " stable"
7070 dependencies : " highest"
71- symfony-version : " stable "
71+ symfony-version : " locked "
7272 proxy : " lazy-ghost"
7373 # Test with ProxyManager
7474 - php-version : " 8.2"
7575 mongodb-version : " 6.0"
7676 driver-version : " stable"
7777 dependencies : " highest"
78- symfony-version : " stable "
78+ symfony-version : " locked "
7979 proxy : " proxy-manager"
8080 # Test with Native Lazy Objects
8181 - php-version : " 8.4"
8282 mongodb-version : " 8.0"
8383 driver-version : " stable"
8484 dependencies : " highest"
85- symfony-version : " stable "
85+ symfony-version : " locked "
8686 proxy : " native"
8787 # Test with extension 1.21
8888 - topology : " server"
8989 php-version : " 8.2"
9090 mongodb-version : " 8.0"
9191 driver-version : " 1.21.0"
9292 dependencies : " highest"
93- symfony-version : " stable"
93+ symfony-version : " locked"
94+ proxy : " lazy-ghost"
95+ # Test with Symfony 7.4 LTS
96+ - topology : " server"
97+ php-version : " 8.2"
98+ mongodb-version : " 8.0"
99+ driver-version : " stable"
100+ dependencies : " highest"
101+ symfony-version : " 7.4"
94102 proxy : " lazy-ghost"
103+ # Test with Symfony 8
104+ - topology : " server"
105+ php-version : " 8.4"
106+ mongodb-version : " 8.0"
107+ driver-version : " stable"
108+ dependencies : " highest"
109+ symfony-version : false
110+ proxy : " native"
95111 # Test with a sharded cluster
96112 # Currently disabled due to a bug where MongoDB reports "sharding status unknown"
97113# - topology: "sharded_cluster"
98114# php-version: "8.2"
99115# mongodb-version: "6.0"
100116# driver-version: "stable"
101117# dependencies: "highest"
102- # symfony-version: "stable "
118+ # symfony-version: "locked "
103119# proxy: "lazy-ghost"
104120
105121 steps :
@@ -127,32 +143,24 @@ jobs:
127143 uses : " shivammathur/setup-php@v2"
128144 with :
129145 php-version : " ${{ matrix.php-version }}"
130- tools : " pecl"
131146 extensions : " mongodb-${{ matrix.driver-version }}, bcmath"
132147 coverage : " none"
133148 ini-values : " zend.assertions=1"
134149
135150 - name : " Show driver information"
136151 run : " php --ri mongodb"
137152
138- # Not used, skip transient dependencies
153+ # Not used for tests , skip transient dependencies
139154 - name : " Remove phpbench/phpbench"
140155 run : composer remove --no-update --dev phpbench/phpbench
141156
142- - name : " Configure Symfony ${{ matrix.symfony-version }}"
143- if : " ${{ matrix.symfony-version != 'stable' }}"
144- run : |
145- composer config minimum-stability dev
146- # update symfony deps
147- composer require --no-update symfony/console:^${{ matrix.symfony-version }}
148- composer require --no-update symfony/var-dumper:^${{ matrix.symfony-version }}
149- composer require --no-update --dev symfony/cache:^${{ matrix.symfony-version }}
150-
151157 - name : " Install dependencies with Composer"
152158 uses : " ramsey/composer-install@v3"
153159 with :
154160 dependency-versions : " ${{ matrix.dependencies }}"
155161 composer-options : " --prefer-dist"
162+ env :
163+ SYMFONY_REQUIRE : ${{ matrix.symfony-version }}
156164
157165 - name : " Install latest Python version"
158166 uses : actions/setup-python@v6
0 commit comments