Skip to content

Commit 96f2deb

Browse files
committed
Install dev version of ext-mongodb
1 parent 3d1e760 commit 96f2deb

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/coding-standards.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
matrix:
2020
php-version:
2121
- "7.4"
22+
driver-version:
23+
- "mongodb/mongo-php-driver@master"
2224

2325
steps:
2426
- name: "Checkout"
@@ -29,7 +31,7 @@ jobs:
2931
uses: shivammathur/cache-extensions@v1
3032
with:
3133
php-version: ${{ matrix.php-version }}
32-
extensions: "mongodb"
34+
extensions: "mongodb-${{ matrix.driver-version }}"
3335
key: "extcache-v1"
3436

3537
- name: Cache extensions
@@ -40,10 +42,10 @@ jobs:
4042
restore-keys: ${{ steps.extcache.outputs.key }}
4143

4244
- name: "Install PHP"
43-
uses: "shivammathur/setup-php@v2"
45+
uses: "alcaeus/setup-php@allow-github-extension-installs"
4446
with:
4547
coverage: "none"
46-
extensions: "mongodb"
48+
extensions: "mongodb-${{ matrix.driver-version }}"
4749
php-version: "${{ matrix.php-version }}"
4850
tools: "cs2pr"
4951

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ jobs:
2626
mongodb-version:
2727
- "4.4"
2828
driver-version:
29-
- "stable"
29+
- "mongodb/mongo-php-driver@master"
3030
topology:
3131
- "server"
3232
include:
3333
- os: "ubuntu-20.04"
3434
php-version: "8.0"
3535
mongodb-version: "4.4"
36-
driver-version: "stable"
36+
driver-version: "mongodb/mongo-php-driver@master"
3737
topology: "replica_set"
3838
- os: "ubuntu-20.04"
3939
php-version: "8.0"
4040
mongodb-version: "4.4"
41-
driver-version: "stable"
41+
driver-version: "mongodb/mongo-php-driver@master"
4242
topology: "sharded_cluster"
4343

4444
steps:
@@ -69,7 +69,7 @@ jobs:
6969
restore-keys: ${{ steps.extcache.outputs.key }}
7070

7171
- name: "Install PHP"
72-
uses: "shivammathur/setup-php@v2"
72+
uses: "alcaeus/setup-php@allow-github-extension-installs"
7373
with:
7474
php-version: "${{ matrix.php-version }}"
7575
tools: "pecl"

0 commit comments

Comments
 (0)