Skip to content

Commit

Permalink
feat: add support for loadbalanced connections (#311)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mcasimir authored Jul 13, 2021
1 parent 0211938 commit 234d082
Show file tree
Hide file tree
Showing 9 changed files with 1,019 additions and 496 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Check and Test
on:
push:
branches:
- master
- main
pull_request:
workflow_dispatch:

jobs:
check-and-test:
name: Check and Test

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

fail-fast: false

# The type of runner that the job will run on
runs-on: ${{ matrix.os }}

env:
SEGMENT_KEY: ${{ secrets.SEGMENT_KEY_PROD }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Install Deps Ubuntu
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get -y install libkrb5-dev libsecret-1-dev net-tools libstdc++6 gnome-keyring

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js Environment
uses: actions/[email protected]
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
node-version: ^12.9.0

- name: Install npm@7
run: npm install -g npm@7

- name: Install Dependencies
run: |
npm ci
shell: bash

- name: Run Checks
run: npm run check
# the glob here just fails
if: ${{ runner.os != 'Windows' }}
shell: bash

- name: Run Tests
run: npm run test
shell: bash

- name: Install vsce
run: npm i -g vsce
shell: bash

- name: Build .vsix
env:
NODE_OPTIONS: "--require ./scripts/no-npm-list-fail.js"
run: vsce package
shell: bash

- name: Check .vsix filesize
run: npm run check-vsix-size
shell: bash

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: VSIX built on ${{ runner.os }}
path: "*.vsix"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ test-results.xml
test-webview-results.xml
constants.json
.env
.eslintcache
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry=https://registry.npmjs.org/
legacy-peer-deps=true
99 changes: 0 additions & 99 deletions azure-pipelines.yml

This file was deleted.

Loading

0 comments on commit 234d082

Please sign in to comment.