Skip to content

Commit

Permalink
[NAE-1998] Implement transactions for events
Browse files Browse the repository at this point in the history
- edit github pipeline
  • Loading branch information
machacjozef committed Jul 31, 2024
1 parent df95e08 commit ca90d16
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ jobs:
image: mongo:4.4
ports:
- 27017:27017
options: >-
--entrypoint "/usr/bin/mongod"
--replSet rs0
--bind_ip_all
options: --entrypoint "/usr/bin/mongod" --replSet "rs0" --bind_ip_all

redis:
image: redis
Expand Down Expand Up @@ -87,21 +84,6 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Wait for MongoDB to be ready
run: |
for i in {1..30}; do
if mongo --eval "print(\"waited for connection\")" &>/dev/null; then
echo "MongoDB is up"
break
fi
echo "Waiting for MongoDB..."
sleep 2
done
- name: Initialize MongoDB Replica Set
run: |
echo 'rs.initiate({_id: "rs0", members: [{_id: 0, host: "localhost:27017"}]})' | mongo
- name: Generate certificates
run: cd src/main/resources/certificates && openssl genrsa -out keypair.pem 4096 && openssl rsa -in keypair.pem -pubout -out public.crt && openssl pkcs8 -topk8 -inform PEM -outform DER -nocrypt -in keypair.pem -out private.der && cd ../../../..

Expand Down

0 comments on commit ca90d16

Please sign in to comment.