File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 59
59
- name : " Create MongoDB Atlas Local"
60
60
if : ${{ matrix.mongodb == 'Atlas' }}
61
61
run : |
62
- docker run --name mongodb -p 27017:27017 -e MONGO_INITDB_DATABASE =unittest --detach mongodb/mongodb-atlas-local:latest
62
+ docker run --name mongodb -p 27017:27017 -e MONGODB_INITDB_DATABASE =unittest --detach mongodb/mongodb-atlas-local:latest
63
63
until docker exec --tty mongodb mongosh 127.0.0.1:27017 --eval "db.runCommand({ ping: 1 })"; do
64
64
sleep 1
65
65
done
@@ -97,10 +97,10 @@ jobs:
97
97
98
98
- name : " Install dependencies"
99
99
run : |
100
+ if [ "${{ matrix.mongodb }}" = "4.4" ]; then MONGOSH_BIN="mongo"; else MONGOSH_BIN="mongosh"; fi
101
+ export MONGODB_URI="mongodb://127.0.0.1/?replicaSet=$($MONGOSH_BIN 'mongodb://127.0.0.1/' --eval 'rs.status().set')"
100
102
composer update --no-interaction \
101
103
$([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest') \
102
104
$([[ "${{ matrix.mode }}" == ignore-php-req ]] && echo ' --ignore-platform-req=php+')
103
105
- name : " Run tests"
104
106
run : " ./vendor/bin/phpunit --coverage-clover coverage.xml"
105
- env :
106
- MONGODB_URI : ' mongodb://127.0.0.1/'
You can’t perform that action at this time.
0 commit comments