-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
9 changed files
with
1,019 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ test-results.xml | |
test-webview-results.xml | ||
constants.json | ||
.env | ||
.eslintcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
registry=https://registry.npmjs.org/ | ||
legacy-peer-deps=true |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.