-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PHPORM-287 Split Atlas Search CI workflow #3245
Conversation
a0636f2
to
97dd373
Compare
|
||
- name: "Run tests" | ||
run: | | ||
export MONGODB_URI="mongodb://127.0.0.1:27017/?directConnection=true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to #3205 (comment)
sleep 1 | ||
done | ||
until docker exec --tty mongodb mongosh 127.0.0.1:27017 --eval "db.createCollection('connection_test') && db.getCollection('connection_test').createSearchIndex({mappings:{dynamic: true}})"; do | ||
until docker exec --tty mongodb $MONGOSH_BIN --eval "db.runCommand({ ping: 1 })"; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Host removed, related to #3205 (comment)
fi | ||
./vendor/bin/phpunit --coverage-clover coverage.xml | ||
export MONGODB_URI="mongodb://127.0.0.1:27017/?replicaSet=rs" | ||
./vendor/bin/phpunit --coverage-clover coverage.xml --exclude-group atlas-search |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By filtering on the group, there is less tests, and I don't get crashes in GitHub Actions.
.github/workflows/build-ci-atlas.yml
Outdated
os: | ||
- "ubuntu-latest" | ||
mongodb: | ||
- "Atlas" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any reference to matrix.mongodb
in this file. Is this needed for something else? If not, I think we can just remove the mongodb
matrix axis.
Fix PHPORM-287