Skip to content

Commit

Permalink
post comments fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Mar 8, 2024
1 parent 227a090 commit d2df64e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: pre-merge

on:
push:
branches:
- 'user/**'
- 'feature/**'
- 'improvement/**'
- 'bugfix/**'
- 'w/**'
- "q/*/**"


jobs:
tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- name: run fetch-mongodb-sharded
run: make -C solution-base/mongodb fetch-mongodb-sharded
- name: Check for changes
run: |
git diff --exit-code || { echo "Error: Changes detected after running 'make fetch-mongodb-sharded'. Please ensure step 4 is completed."; exit 1; }

Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#!/bin/bash

if which mongo &> /dev/null; then
mongoCmd="mongo"
else
mongoCmd="mongosh"
fi

set_default_majority() {
$mongoCmd "mongodb://127.0.0.1:27017/?replicaSet=${MONGODB_REPLICA_SET_NAME}" -u 'root' -p "$MONGODB_ROOT_PASSWORD" <<EOF
mongosh "mongodb://127.0.0.1:27017/?replicaSet=${MONGODB_REPLICA_SET_NAME}" -u 'root' -p "$MONGODB_ROOT_PASSWORD" <<EOF
conf = rs.config()
defaultWriteConcern = conf.settings.getLastErrorDefaults
Expand Down
4 changes: 4 additions & 0 deletions solution-base/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


0 comments on commit d2df64e

Please sign in to comment.