Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
aa0dec2
fix: Fix --lerna-exec flag detection
gribnoysup Jun 4, 2021
a7e2b4f
chore: Enable npm workspaces, update bson, remove pre-commit
gribnoysup Jun 4, 2021
cb07b4e
fix: Do not use explicit relative paths to node_modules in styles
gribnoysup Jun 4, 2021
ef2c46d
feat: Allow hadron-style-manager and hadron-plugin-manager to resolve…
gribnoysup Jun 4, 2021
5138f35
fix(hadron-style-manager): Fix usage of a missing variable
gribnoysup Jun 4, 2021
e669131
chore: Update root npm scripts to align with npm workspaces setup
gribnoysup Jun 4, 2021
ae0f816
ci: Let's try GitHub Actions on PRs again
gribnoysup Jun 4, 2021
24083e5
test: Update jsdom and webpack-node-externals; Explicitly tell webpac…
gribnoysup Jun 7, 2021
d505194
test: Rebuild native deps after electron tests
gribnoysup Jun 8, 2021
4589036
test: Misc test fixes caused by packages hoisting and version bumps
gribnoysup Jun 8, 2021
1cd7376
fix(storage-mixin): Rebuild kerberos before running tests
gribnoysup Jun 8, 2021
d36688b
test: Address more test failures
gribnoysup Jun 8, 2021
1a4ff3d
chore: Revert bson version bump change to the latest browser-safe ver…
gribnoysup Jun 9, 2021
bf6a827
Merge remote-tracking branch 'origin/master' into npm-workspaces
gribnoysup Jun 14, 2021
a112b85
chore: Switch some root-level scripts to use `npm --workspaces`
gribnoysup Jun 15, 2021
55b3c3e
Merge remote-tracking branch 'origin/master' into npm-workspaces
gribnoysup Jun 15, 2021
9f39171
fix(hadron-build): Resolve plugins as node modules when packaging sty…
gribnoysup Jun 15, 2021
826e7ca
fix(hadron-build): Disable unnecessary `prune` option to avoid electr…
gribnoysup Jun 15, 2021
7eaa7c5
ci: Run GitHub Actions on different os and try building Compass durin…
gribnoysup Jun 15, 2021
13ba01e
chore: Regenerate package-lock file
gribnoysup Jun 15, 2021
c643383
ci: Fix workflow template
gribnoysup Jun 15, 2021
01ec587
ci: Disable build and upload in GitHub Actions CI for now
gribnoysup Jun 15, 2021
abfa938
Merge remote-tracking branch 'origin/master' into npm-workspaces
gribnoysup Jun 15, 2021
b01a5c3
fix(hadron-style-manager): Disable flaky test
gribnoysup Jun 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/check-test-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# This action runs lint checks and tests against the code.
name: Check, Test, and Build

# Controls when the action will run.
on:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check-and-test:
name: Check, Test, and Build

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

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

# 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

- name: Setup Node.js Environment
uses: actions/setup-node@v2.1.2
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
node-version: ^12.4.0

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

- name: Install Dependencies
run: npm install --force && npx lerna run prepare --stream

- name: Run Checks
run: npm run check -- --stream

- name: Run Tests
run: npm run test -- --stream

# TODO: Fix windows and macos and re-enable
#
# - Windows can't find wix toolkit and fails to bundle (see https://github.community/t/set-path-for-wix-toolset-in-windows-runner/154708)
# - MacOS bundles correctly but tries to upload the whole .app which we probably don't want
#
# - name: Build Compass
# env:
# HADRON_PRODUCT: mongodb-compass
# HADRON_PRODUCT_NAME: MongoDB Compass
# HADRON_DISTRIBUTION: compass
# DEBUG: hadron*
# run: npm run release-evergreen

# - name: Upload Compass Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: Compass Build ${{ runner.os }}
# path: ${{ github.workspace }}/packages/compass/dist
42 changes: 0 additions & 42 deletions .github/workflows/pr.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Temporarily disabled because of dependency mixups in mongosh 0.6.1.
engine-strict=true
registry=https://registry.npmjs.org/
legacy-peer-deps=true
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ npm i -S @mongodb-js/compass-aggregations@latest
And in package.json:
```js
"distributions": {
"plugin-prefix": "@mongodb-js/compass",
"default": "compass",
"compass": {
"name": "mongodb-compass",
Expand Down
Loading