Skip to content

Commit 234d082

Browse files
authored
feat: add support for loadbalanced connections (#311)
* feat: add support for loadbalanced connections * fix for npm@7 * try the same ci of compass since there is npm works * add segment key to ci * adjust failing assertions to new connection model * remove azure pipelines * build vsix * use eslint cache * build on macOs * run push only on master or main * try build everywhere * use production segment key, remove commented ifs * bump mongosh to v1.0.0
1 parent 0211938 commit 234d082

File tree

9 files changed

+1019
-496
lines changed

9 files changed

+1019
-496
lines changed

.github/workflows/pr.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Check and Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
check-and-test:
12+
name: Check and Test
13+
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macos-latest]
17+
18+
fail-fast: false
19+
20+
# The type of runner that the job will run on
21+
runs-on: ${{ matrix.os }}
22+
23+
env:
24+
SEGMENT_KEY: ${{ secrets.SEGMENT_KEY_PROD }}
25+
26+
# Steps represent a sequence of tasks that will be executed as part of the job
27+
steps:
28+
- name: Install Deps Ubuntu
29+
if: ${{ runner.os == 'Linux' }}
30+
run: sudo apt-get -y install libkrb5-dev libsecret-1-dev net-tools libstdc++6 gnome-keyring
31+
32+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
33+
- name: Checkout
34+
uses: actions/checkout@v2
35+
with:
36+
fetch-depth: 0
37+
38+
- name: Setup Node.js Environment
39+
uses: actions/[email protected]
40+
with:
41+
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
42+
node-version: ^12.9.0
43+
44+
- name: Install npm@7
45+
run: npm install -g npm@7
46+
47+
- name: Install Dependencies
48+
run: |
49+
npm ci
50+
shell: bash
51+
52+
- name: Run Checks
53+
run: npm run check
54+
# the glob here just fails
55+
if: ${{ runner.os != 'Windows' }}
56+
shell: bash
57+
58+
- name: Run Tests
59+
run: npm run test
60+
shell: bash
61+
62+
- name: Install vsce
63+
run: npm i -g vsce
64+
shell: bash
65+
66+
- name: Build .vsix
67+
env:
68+
NODE_OPTIONS: "--require ./scripts/no-npm-list-fail.js"
69+
run: vsce package
70+
shell: bash
71+
72+
- name: Check .vsix filesize
73+
run: npm run check-vsix-size
74+
shell: bash
75+
76+
- name: Upload artifacts
77+
uses: actions/upload-artifact@v2
78+
with:
79+
name: VSIX built on ${{ runner.os }}
80+
path: "*.vsix"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ test-results.xml
88
test-webview-results.xml
99
constants.json
1010
.env
11+
.eslintcache

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmjs.org/
2+
legacy-peer-deps=true

azure-pipelines.yml

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

0 commit comments

Comments
 (0)