Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

Commit f5b4f2d

Browse files
authored
fix: hide default port from title bar for SRV url COMPASS-4398 (#153)
* fix: Wrong/Default port displayed on title bar when Compass connects to MongoDB via SRV record COMPASS-4398 * chore: move CI to github actions * use connection.title * fix tests
1 parent ed5d717 commit f5b4f2d

File tree

11 files changed

+490
-89
lines changed

11 files changed

+490
-89
lines changed

.github/workflows/run-tests.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Run Tests
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
jobs:
9+
check-and-test:
10+
name: Check and Test
11+
runs-on: ubuntu-20.04
12+
13+
strategy:
14+
matrix:
15+
mongoVersion: [stable, unstable]
16+
17+
env:
18+
MONGODB_VERSION: ${{ matrix.mongoVersion }}
19+
MONGODB_TOPOLOGY: standalone
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v1
24+
with:
25+
node-version: 12.4.0
26+
27+
- name: Cache node modules
28+
uses: actions/cache@v2
29+
env:
30+
cache-name: cache-node-modules
31+
with:
32+
path: ~/.npm
33+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
34+
restore-keys: |
35+
${{ runner.os }}-build-${{ env.cache-name }}-
36+
${{ runner.os }}-build-
37+
${{ runner.os }}-
38+
39+
- name: Install Required OS Packages
40+
run: sudo apt-get -y install libkrb5-dev libsecret-1-dev net-tools
41+
42+
- name: Install NPM Packages
43+
run: npm install
44+
45+
- name: Check and Test
46+
run: |
47+
npm run check
48+
npm run test
49+
while true; do \
50+
MATCH="$(sudo netstat -tlnp | grep 27018 || true)"; \
51+
if [[ "$MATCH" == "" ]]; then echo "mongod exited..."; break; fi; \
52+
echo "$MATCH"; \
53+
echo "mongod still up..."; \
54+
PID="$(echo $MATCH | awk '{print $7}' | cut -f1 -d'/')"; \
55+
if [[ "$PID" == "" ]]; then echo "failed to find PID"; break; fi; \
56+
echo "sudo killing -9 $PID..."; \
57+
sudo kill -9 $PID; \
58+
echo "... killed?!"; \
59+
sleep 3; \
60+
done
61+
npm run test:karma

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)