Skip to content

Commit 52bb81e

Browse files
authored
Upgrade CI: Ubuntu, MongoDB Server, Extension, Symfony (#2757)
Since mongodb extension v2.0.0 has been released, we need to explicitly install the version 1.21.0 to test this version Ubuntu 20.04 Image is disabled by Github, upgraded to 22.04 for unit tests that need to setup MongoDB Server. 24.04 for other tests. MongoDB 5.0 is not supported by on Ubuntu 22.04, so the minimum MongoDB server tested is 6.0. Adding test on MongoDB 8.0 Adding test on Symfony 6.4: lowest dependencies installs 5.4 and highest installs 7.2+
1 parent 9b4e9a7 commit 52bb81e

File tree

4 files changed

+26
-25
lines changed

4 files changed

+26
-25
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
jobs:
1414
phpunit:
1515
name: "PHPUnit"
16-
runs-on: "ubuntu-20.04"
16+
runs-on: "ubuntu-22.04"
1717

1818
strategy:
1919
fail-fast: false
@@ -24,9 +24,9 @@ jobs:
2424
- "8.3"
2525
- "8.4"
2626
mongodb-version:
27+
- "8.0"
2728
- "7.0"
2829
- "6.0"
29-
- "5.0"
3030
driver-version:
3131
- "stable"
3232
topology:
@@ -41,46 +41,47 @@ jobs:
4141
# Test against lowest dependencies
4242
- dependencies: "lowest"
4343
php-version: "8.1"
44-
mongodb-version: "5.0"
44+
mongodb-version: "6.0"
4545
driver-version: "1.21.0"
4646
topology: "server"
4747
symfony-version: "stable"
4848
proxy: "lazy-ghost"
49-
# Test with highest dependencies
49+
# Test with Symfony 6.4
5050
- topology: "server"
51-
php-version: "8.2"
52-
mongodb-version: "7.0"
51+
php-version: "8.1"
52+
mongodb-version: "6.0"
5353
driver-version: "stable"
5454
dependencies: "highest"
55-
symfony-version: "7"
55+
symfony-version: "6.4"
5656
proxy: "lazy-ghost"
57-
# Test with a 5.0 replica set
57+
# Test with a 6.0 replica set
5858
- topology: "replica_set"
5959
php-version: "8.2"
60-
mongodb-version: "5.0"
60+
mongodb-version: "6.0"
6161
driver-version: "stable"
6262
dependencies: "highest"
6363
symfony-version: "stable"
6464
proxy: "lazy-ghost"
6565
# Test with ProxyManager
6666
- php-version: "8.2"
67-
mongodb-version: "5.0"
67+
mongodb-version: "6.0"
6868
driver-version: "stable"
6969
dependencies: "highest"
7070
symfony-version: "stable"
7171
proxy: "proxy-manager"
72-
# Test with ext-2.0
72+
# Test with extension 1.21
7373
- topology: "server"
7474
php-version: "8.2"
75-
mongodb-version: "7.0"
76-
driver-version: "mongodb/[email protected]"
75+
mongodb-version: "8.0"
76+
driver-version: "1.21.0"
7777
dependencies: "highest"
78-
symfony-version: "7"
79-
# Test with a 5.0 sharded cluster
78+
symfony-version: "stable"
79+
proxy: "lazy-ghost"
80+
# Test with a sharded cluster
8081
# Currently disabled due to a bug where MongoDB reports "sharding status unknown"
8182
# - topology: "sharded_cluster"
8283
# php-version: "8.2"
83-
# mongodb-version: "5.0"
84+
# mongodb-version: "6.0"
8485
# driver-version: "stable"
8586
# dependencies: "highest"
8687
# symfony-version: "stable"
@@ -119,18 +120,18 @@ jobs:
119120
- name: "Show driver information"
120121
run: "php --ri mongodb"
121122

122-
# This allows installing symfony/console 3.4 and 6
123+
# Not used, skip transient dependencies
123124
- name: "Remove phpbench/phpbench"
124125
run: composer remove --no-update --dev phpbench/phpbench
125126

126-
- name: "Configure Symfony v7@dev"
127-
if: "${{ matrix.symfony-version == '7' }}"
127+
- name: "Configure Symfony ${{ matrix.symfony-version }}"
128+
if: "${{ matrix.symfony-version != 'stable' }}"
128129
run: |
129130
composer config minimum-stability dev
130131
# update symfony deps
131-
composer require --no-update symfony/console:^7@dev
132-
composer require --no-update symfony/var-dumper:^7@dev
133-
composer require --no-update --dev symfony/cache:^7@dev
132+
composer require --no-update symfony/console:^${{ matrix.symfony-version }}
133+
composer require --no-update symfony/var-dumper:^${{ matrix.symfony-version }}
134+
composer require --no-update --dev symfony/cache:^${{ matrix.symfony-version }}
134135
135136
- name: "Install dependencies with Composer"
136137
uses: "ramsey/composer-install@v3"

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818
validate-with-guides:
1919
name: "Validate documentation with phpDocumentor/guides"
20-
runs-on: "ubuntu-22.04"
20+
runs-on: "ubuntu-24.04"
2121

2222
steps:
2323
- name: "Checkout code"

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
performance-tests:
1212
name: "Performance Tests"
13-
runs-on: "ubuntu-22.04"
13+
runs-on: "ubuntu-24.04"
1414

1515
strategy:
1616
matrix:

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
static-analysis-phpstan:
1313
name: "Static Analysis with PHPStan"
14-
runs-on: "ubuntu-22.04"
14+
runs-on: "ubuntu-24.04"
1515

1616
strategy:
1717
matrix:

0 commit comments

Comments
 (0)