Skip to content

Commit

Permalink
Regression: Fix services-image-build-check (#25519)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Sampaio <[email protected]>
  • Loading branch information
ggazzo and sampaiodiego authored May 16, 2022
1 parent 3b9254e commit 2d59aa9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 29 deletions.
62 changes: 36 additions & 26 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
release:
types: [published]
pull_request:
branches: "**"
branches: '**'
push:
branches:
- develop
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Use Node.js 14.18.3
uses: actions/setup-node@v3
with:
node-version: "14.18.3"
node-version: '14.18.3'

- uses: actions/checkout@v3

Expand Down Expand Up @@ -175,8 +175,8 @@ jobs:

strategy:
matrix:
node-version: ["14.18.3"]
mongodb-version: ["3.6", "4.0", "4.2", "4.4", "5.0"]
node-version: ['14.18.3']
mongodb-version: ['3.6', '4.0', '4.2', '4.4', '5.0']

steps:
- name: Launch MongoDB
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
- name: E2E Test API
env:
TEST_MODE: "true"
TEST_MODE: 'true'
MONGO_URL: mongodb://localhost:27017/rocketchat
MONGO_OPLOG_URL: mongodb://localhost:27017/local
run: |
Expand All @@ -258,7 +258,7 @@ jobs:
- name: E2E Test UI (Legacy - Cypress)
env:
TEST_MODE: "true"
TEST_MODE: 'true'
MONGO_URL: mongodb://localhost:27017/rocketchat
MONGO_OPLOG_URL: mongodb://localhost:27017/local
run: |
Expand All @@ -269,7 +269,7 @@ jobs:
- name: E2E Test UI
env:
TEST_MODE: "true"
TEST_MODE: 'true'
MONGO_URL: mongodb://localhost:27017/rocketchat
MONGO_OPLOG_URL: mongodb://localhost:27017/local
run: |
Expand Down Expand Up @@ -305,8 +305,8 @@ jobs:

strategy:
matrix:
node-version: ["14.18.3"]
mongodb-version: ["4.4"]
node-version: ['14.18.3']
mongodb-version: ['4.4']

steps:
- name: Launch MongoDB
Expand Down Expand Up @@ -372,12 +372,12 @@ jobs:

- name: E2E Test API
env:
TEST_MODE: "true"
TEST_MODE: 'true'
MONGO_URL: mongodb://localhost:27017/rocketchat
MONGO_OPLOG_URL: mongodb://localhost:27017/local
ENTERPRISE_LICENSE: ${{ secrets.ENTERPRISE_LICENSE }}
TRANSPORTER: nats://localhost:4222
SKIP_PROCESS_EVENT_REGISTRATION: "true"
SKIP_PROCESS_EVENT_REGISTRATION: 'true'
run: |
echo -e 'pcm.!default {\n type hw\n card 0\n}\n\nctl.!default {\n type hw\n card 0\n}' > ~/.asoundrc
Xvfb -screen 0 1024x768x24 :99 &
Expand All @@ -388,15 +388,15 @@ jobs:
- name: E2E Test UI (Legacy - Cypress)
env:
TEST_MODE: "true"
TEST_MODE: 'true'
MONGO_URL: mongodb://localhost:27017/rocketchat
MONGO_OPLOG_URL: mongodb://localhost:27017/local
ENTERPRISE_LICENSE: ${{ secrets.ENTERPRISE_LICENSE }}
TRANSPORTER: nats://localhost:4222
CYPRESS_BASE_URL: http://localhost:4000
CYPRESS_TEST_API_URL: http://localhost:4000
OVERWRITE_SETTING_Site_Url: http://localhost:4000
SKIP_PROCESS_EVENT_REGISTRATION: "true"
SKIP_PROCESS_EVENT_REGISTRATION: 'true'
run: |
echo -e 'pcm.!default {\n type hw\n card 0\n}\n\nctl.!default {\n type hw\n card 0\n}' > ~/.asoundrc
Xvfb -screen 0 1024x768x24 :99 &
Expand All @@ -412,15 +412,15 @@ jobs:
- name: E2E Test UI
env:
TEST_MODE: "true"
TEST_MODE: 'true'
MONGO_URL: mongodb://localhost:27017/rocketchat
MONGO_OPLOG_URL: mongodb://localhost:27017/local
ENTERPRISE_LICENSE: ${{ secrets.ENTERPRISE_LICENSE }}
TRANSPORTER: nats://localhost:4222
CYPRESS_BASE_URL: http://localhost:4000
CYPRESS_TEST_API_URL: http://localhost:4000
OVERWRITE_SETTING_Site_Url: http://localhost:4000
SKIP_PROCESS_EVENT_REGISTRATION: "true"
SKIP_PROCESS_EVENT_REGISTRATION: 'true'
run: |
echo -e 'pcm.!default {\n type hw\n card 0\n}\n\nctl.!default {\n type hw\n card 0\n}' > ~/.asoundrc
Xvfb -screen 0 1024x768x24 :99 &
Expand Down Expand Up @@ -469,7 +469,7 @@ jobs:

strategy:
matrix:
release: ["official", "preview"]
release: ['official', 'preview']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -519,7 +519,7 @@ jobs:
- name: Use Node.js 14.18.3
uses: actions/setup-node@v3
with:
node-version: "14.18.3"
node-version: '14.18.3'

- name: Install Meteor
run: |
Expand Down Expand Up @@ -601,16 +601,27 @@ jobs:

strategy:
matrix:
service:
["ddp-streamer"]
service: ['ddp-streamer']

steps:
- uses: actions/checkout@v3

- name: Use Node.js 14.18.3
uses: actions/setup-node@v3
with:
node-version: "14.18.3"
node-version: '14.18.3'

- uses: c-hive/gha-yarn-cache@v2
- name: Cache turbo
id: cache-turbo
uses: actions/cache@v2
with:
path: |
./node_modules/.turbo
key: ${{ runner.OS }}-turbo-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-turbo-
${{ runner.os }}-
- name: Build Docker images
env:
Expand Down Expand Up @@ -670,7 +681,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"
AWS_DEFAULT_REGION: 'us-east-1'
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
REDHAT_REGISTRY_PID: ${{ secrets.REDHAT_REGISTRY_PID }}
REDHAT_REGISTRY_KEY: ${{ secrets.REDHAT_REGISTRY_KEY }}
Expand Down Expand Up @@ -738,10 +749,10 @@ jobs:
strategy:
matrix:
# this is current a mix of variants and different images
release: ["official", "preview", "alpine"]
release: ['official', 'preview', 'alpine']

env:
IMAGE_NAME: "rocketchat/rocket.chat"
IMAGE_NAME: 'rocketchat/rocket.chat'

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -844,16 +855,15 @@ jobs:

strategy:
matrix:
service:
["account", "authorization", "ddp-streamer", "presence", "stream-hub"]
service: ['account', 'authorization', 'ddp-streamer', 'presence', 'stream-hub']

steps:
- uses: actions/checkout@v3

- name: Use Node.js 14.18.3
uses: actions/setup-node@v3
with:
node-version: "14.18.3"
node-version: '14.18.3'

- name: Login to DockerHub
uses: docker/login-action@v1
Expand Down
3 changes: 0 additions & 3 deletions apps/meteor/app/settings/server/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import { ICachedSettings } from './CachedSettings';

export function initializeSettings({ SettingsModel, settings }: { SettingsModel: Settings; settings: ICachedSettings }): void {
SettingsModel.find().forEach((record: ISetting) => {
if (record._id.startsWith('Prometheus')) {
console.log('store cache', record);
}
settings.set(record);
});

Expand Down

0 comments on commit 2d59aa9

Please sign in to comment.