Skip to content

Commit abbe873

Browse files
authored
Merge pull request #94 from CodelyTV/rabbitmq-eventbus
Rabbitmq EventBus implementation
2 parents d4748b0 + 036caed commit abbe873

File tree

78 files changed

+1188
-519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1188
-519
lines changed

.github/workflows/nodejs.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [12.x, 14.x]
12-
mongodb-version: [4.0, 4.2]
11+
node-version: [12.x, 15.x]
12+
mongodb-version: [4.2]
1313
elasticsearch-version: ['7.9.3']
14+
rabbitmq-version: ['3.8.2-management-alpine']
1415

1516
steps:
1617
- uses: actions/checkout@v1
@@ -22,6 +23,10 @@ jobs:
2223
uses: wbari/start-mongoDB@v0.2
2324
with:
2425
mongoDBVersion: ${{ matrix.mongodb-version }}
26+
- name: Launch RabbitMQ
27+
uses: nijel/rabbitmq-action@v1.0.0
28+
with:
29+
rabbitmq version: ${{ matrix.rabbitmq-version }}
2530
- name: Configure sysctl limits
2631
run: |
2732
sudo swapoff -a
@@ -37,11 +42,20 @@ jobs:
3742
host node port: 9300
3843
node port: 9300
3944
discovery type: 'single-node'
40-
- name: npm install, build, and test
45+
- name: npm install
4146
run: |
4247
npm install
48+
- name: npm run build
49+
run: |
4350
npm run build --if-present
4451
npm run lint
52+
- name: npm test
53+
run: |
4554
npm test
55+
- name: Cypress run
56+
uses: cypress-io/github-action@v1
4657
env:
47-
CI: true
58+
NODE_ENV: end2end
59+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
60+
with:
61+
start: npm run cypress:ci:start

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ clean:
4444

4545
# Start databases containers in background
4646
start_database:
47-
docker-compose up -d mongo elasticsearch
47+
docker-compose up -d mongo elasticsearch rabbitmq

cypress.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"baseUrl": "http://localhost:8032",
23
"video": false,
34
"screenshotOnRunFailure": false,
45
"testFiles": "**/*.cypress.*",

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ services:
6262
ports:
6363
- 5601:5601
6464

65+
rabbitmq:
66+
image: 'rabbitmq:3.8-management'
67+
ports:
68+
- 5672:5672
69+
- 15672:15672
70+
6571
volumes:
6672
node_modules:
6773
esdata:

0 commit comments

Comments
 (0)