Skip to content
Merged
11 changes: 6 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ jobs:

- name: Start containers
env:
MONGO_URL: "mongodb://host.docker.internal:27017/rocketchat?replicaSet=rs0&directConnection=true"
MONGO_OPLOG_URL: "mongodb://mongodb:27017/local?replicaSet=rs0&directConnection=true"
MONGO_URL: 'mongodb://host.docker.internal:27017/rocketchat?replicaSet=rs0&directConnection=true'
MONGO_OPLOG_URL: 'mongodb://mongodb:27017/local?replicaSet=rs0&directConnection=true'
run: |
export LOWERCASE_REPOSITORY=$(echo "${{ github.repository_owner }}" | tr "[:upper:]" "[:lower:]")

Expand Down Expand Up @@ -440,11 +440,12 @@ jobs:

- name: Start containers
env:
MONGO_URL: "mongodb://host.docker.internal:27017/rocketchat?replicaSet=rs0&directConnection=true"
RC_DOCKERFILE: "${{ github.workspace }}/apps/meteor/.docker/Dockerfile"
RC_DOCKER_TAG: "${{ needs.release-versions.outputs.gh-docker-tag }}.official"
MONGO_URL: 'mongodb://host.docker.internal:27017/rocketchat?replicaSet=rs0&directConnection=true'
RC_DOCKERFILE: '${{ github.workspace }}/apps/meteor/.docker/Dockerfile'
RC_DOCKER_TAG: '${{ needs.release-versions.outputs.gh-docker-tag }}.official'
DOCKER_TAG: ${{ needs.release-versions.outputs.gh-docker-tag }}
TRANSPORTER: nats://nats:4222
ENTERPRISE_LICENSE: ${{ secrets.ENTERPRISE_LICENSE }}
run: |
export LOWERCASE_REPOSITORY=$(echo "${{ github.repository_owner }}" | tr "[:upper:]" "[:lower:]")

Expand Down
3 changes: 2 additions & 1 deletion apps/meteor/tests/e2e/homepage.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Page } from '@playwright/test';

import { IS_EE } from './config/constants';
import { expect, test } from './utils/test';

const CardIds = {
Expand Down Expand Up @@ -122,7 +123,7 @@ test.describe.serial('homepage', () => {
});

test.describe('enterprise edition', () => {
test.skip(/* !IS_EE */ true, 'Enterprise Only');
test.skip(!IS_EE, 'Enterprise Only');

test.beforeAll(async ({ api }) => {
expect((await api.post('/settings/Layout_Custom_Body_Only', { value: true })).status()).toBe(200);
Expand Down
35 changes: 18 additions & 17 deletions docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ services:
environment:
- TEST_MODE=true
- EXIT_UNHANDLEDPROMISEREJECTION=true
- "MONGO_URL=${MONGO_URL}"
- "MONGO_OPLOG_URL=${MONGO_OPLOG_URL}"
- "TRANSPORTER=${TRANSPORTER}"
- 'MONGO_URL=${MONGO_URL}'
- 'MONGO_OPLOG_URL=${MONGO_OPLOG_URL}'
- 'TRANSPORTER=${TRANSPORTER}'
- MOLECULER_LOG_LEVEL=info
- 'ROCKETCHAT_LICENSE=${ENTERPRISE_LICENSE}'
extra_hosts:
- "host.docker.internal:host-gateway"
- 'host.docker.internal:host-gateway'
depends_on:
- traefik
labels:
Expand All @@ -30,11 +31,11 @@ services:
SERVICE: authorization
image: ghcr.io/${LOWERCASE_REPOSITORY}/authorization-service:${DOCKER_TAG}
environment:
- "MONGO_URL=${MONGO_URL}"
- TRANSPORTER=nats://nats:4222
- 'MONGO_URL=${MONGO_URL}'
- 'TRANSPORTER=${TRANSPORTER}'
- MOLECULER_LOG_LEVEL=info
extra_hosts:
- "host.docker.internal:host-gateway"
- 'host.docker.internal:host-gateway'
depends_on:
- nats

Expand All @@ -46,10 +47,10 @@ services:
image: ghcr.io/${LOWERCASE_REPOSITORY}/account-service:${DOCKER_TAG}
environment:
- MONGO_URL=${MONGO_URL}
- TRANSPORTER=nats://nats:4222
- 'TRANSPORTER=${TRANSPORTER}'
- MOLECULER_LOG_LEVEL=info
extra_hosts:
- "host.docker.internal:host-gateway"
- 'host.docker.internal:host-gateway'
depends_on:
- nats

Expand All @@ -61,10 +62,10 @@ services:
image: ghcr.io/${LOWERCASE_REPOSITORY}/presence-service:${DOCKER_TAG}
environment:
- MONGO_URL=${MONGO_URL}
- TRANSPORTER=nats://nats:4222
- 'TRANSPORTER=${TRANSPORTER}'
- MOLECULER_LOG_LEVEL=info
extra_hosts:
- "host.docker.internal:host-gateway"
- 'host.docker.internal:host-gateway'
depends_on:
- nats

Expand All @@ -76,10 +77,10 @@ services:
image: ghcr.io/${LOWERCASE_REPOSITORY}/ddp-streamer-service:${DOCKER_TAG}
environment:
- MONGO_URL=${MONGO_URL}
- TRANSPORTER=nats://nats:4222
- 'TRANSPORTER=${TRANSPORTER}'
- MOLECULER_LOG_LEVEL=info
extra_hosts:
- "host.docker.internal:host-gateway"
- 'host.docker.internal:host-gateway'
depends_on:
- nats
- traefik
Expand All @@ -97,19 +98,19 @@ services:
image: ghcr.io/${LOWERCASE_REPOSITORY}/stream-hub-service:${DOCKER_TAG}
environment:
- MONGO_URL=${MONGO_URL}
- TRANSPORTER=nats://nats:4222
- 'TRANSPORTER=${TRANSPORTER}'
- MOLECULER_LOG_LEVEL=info
extra_hosts:
- "host.docker.internal:host-gateway"
- 'host.docker.internal:host-gateway'
depends_on:
- nats

nats:
image: nats:2.6-alpine
extra_hosts:
- "host.docker.internal:host-gateway"
- 'host.docker.internal:host-gateway'
ports:
- "4222:4222"
- '4222:4222'

traefik:
image: traefik:v2.8
Expand Down