Skip to content

Commit ec3f94c

Browse files
committed
Merge branch 'main' into ni/mql-typescript
2 parents 71ef75c + a980026 commit ec3f94c

File tree

161 files changed

+2530
-2330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+2530
-2330
lines changed

.github/workflows/check-test.yaml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# This action runs lint checks and tests against the code.
22
name: Check and Test
33

4-
# Controls when the action will run.
54
on:
65
pull_request:
76

8-
# Allows you to run this workflow manually from the Actions tab
97
workflow_dispatch:
108
push:
119
branches:
@@ -18,7 +16,6 @@ concurrency:
1816
group: ${{ github.workflow }}-${{ github.ref }}
1917
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2018

21-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2219
jobs:
2320
check-and-test:
2421
name: Check and Test
@@ -28,10 +25,8 @@ jobs:
2825
strategy:
2926
matrix:
3027
os: [ubuntu-latest, windows-latest, macos-latest]
31-
3228
fail-fast: false
3329

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

3732
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -51,22 +46,19 @@ jobs:
5146
if: ${{ runner.os == 'Linux' }}
5247
run: sudo apt-get -y update && sudo apt-get -y install libkrb5-dev libsecret-1-dev net-tools libstdc++6 gnome-keyring
5348

54-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
5549
- name: Checkout
5650
uses: actions/checkout@v4
5751
with:
5852
fetch-depth: 0
5953
submodules: recursive
54+
ref: ${{ github.event.pull_request.head.sha }}
6055

6156
- name: Setup Node.js
6257
uses: actions/setup-node@v4
6358
with:
6459
node-version: 20.x
6560
cache: "npm"
6661

67-
- name: Install npm
68-
run: npm install -g npm@9
69-
7062
- name: Use [email protected]
7163
# Default Python (3.12) doesn't have support for distutils
7264
# https://github.com/nodejs/node-gyp/issues/2869
@@ -79,9 +71,8 @@ jobs:
7971
# Dependencies are included when installing as npm workspaces will
8072
# hoist every package in the repo and it's important that the
8173
# dependencies of packages we are planning to test are also prepared
82-
npm ci
8374
npm run bootstrap-ci -- --scope @mongodb-js/monorepo-tools --stream --include-dependencies
84-
npm run bootstrap-ci -- --stream --since ${SINCE_REF} --include-dependencies
75+
npm run bootstrap-ci -- --stream --include-dependencies
8576
8677
# saslprep source code may have been modified by bootstrapping,
8778
# depending on the OS, so undo that change if it has happened
@@ -97,12 +88,26 @@ jobs:
9788
shell: bash
9889

9990
- name: Run Checks
100-
# We exclude dependents when running eslint and depchecks because
101-
# linting and dependency checking is relevant only for packages where
102-
# the source code was changed
103-
run: npm run check-ci -- --stream --since ${SINCE_REF} --exclude-dependents
91+
run: npm run check-ci -- --stream
10492
shell: bash
10593

10694
- name: Run Tests
107-
run: npm run test-ci -- --stream --since ${SINCE_REF}
95+
run: npm run test-ci -- --stream
10896
shell: bash
97+
98+
- name: Report Coverage
99+
if: ${{ runner.os == 'Linux' }}
100+
run: |
101+
curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz -C /usr/local/bin
102+
coverage_reports=(packages/*/coverage/lcov.info)
103+
for report in "${coverage_reports[@]}"; do
104+
echo "Processing report: $report"
105+
flag_name=$(sed -E 's/packages\/([^\/]*)\/coverage\/lcov.info/\1/g' <<<$report)
106+
coveralls report --base-path . --job-flag=$flag_name $report --parallel --no-logo
107+
done
108+
109+
coveralls done
110+
env:
111+
COVERALLS_GIT_BRANCH: ${{ github.head_ref || github.ref_name }}
112+
COVERALLS_REPO_TOKEN: ${{ github.token }}
113+
COVERALLS_GIT_COMMIT: ${{ github.event.pull_request.head.sha || github.sha }}

configs/eslint-config-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mongodb-js/eslint-config-devtools",
3-
"version": "0.9.10",
3+
"version": "0.9.11",
44
"description": "Shared DevTools eslint configuration",
55
"license": "SSPL",
66
"main": "index.js",

configs/mocha-config-devtools/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mongodb-js/mocha-config-devtools",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Shared mocha mocha configuration for Devtools packages",
55
"license": "SSPL",
66
"main": "index.js",
@@ -22,7 +22,7 @@
2222
"access": "public"
2323
},
2424
"devDependencies": {
25-
"@mongodb-js/prettier-config-devtools": "^1.0.0",
25+
"@mongodb-js/prettier-config-devtools": "^1.0.2",
2626
"prettier": "^3.5.3",
2727
"react": ">=16"
2828
},
@@ -31,7 +31,7 @@
3131
},
3232
"dependencies": {
3333
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
34-
"chai": "^4.3.4",
34+
"chai": "^4.5.0",
3535
"chai-dom": "^1.9.0",
3636
"chai-enzyme": "^1.0.0-beta.1",
3737
"enzyme": "^3.11.0",
@@ -41,6 +41,6 @@
4141
"react-16-node-hanging-test-fix": "^1.0.0",
4242
"sinon-chai": "^3.7.0",
4343
"ts-node": "^10.9.2",
44-
"why-is-node-running": "^2.2.2"
44+
"why-is-node-running": "^2.3.0"
4545
}
4646
}

configs/mocha-config-devtools/react.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ describe('mocha-config-devtools/react', function () {
1212
const tag = document.createElement('style');
1313
tag.appendChild(
1414
document.createTextNode(
15-
`@container compass-workspace-container (width < 900px){.test{display:none;}}`
16-
)
15+
`@container compass-workspace-container (width < 900px){.test{display:none;}}`,
16+
),
1717
);
1818
document.head.appendChild(tag);
1919
});

configs/mocha-config-devtools/register/why-node-running.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports.mochaHooks = {
88
const timeout = setTimeout(() => {
99
console.log(
1010
"if the process still running, run kill -SIGINFO %s to see what's keeping it",
11-
process.pid
11+
process.pid,
1212
);
1313
}, 10000);
1414
timeout.unref?.();

configs/prettier-config-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mongodb-js/prettier-config-devtools",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Shared Devtools prettier configuration",
55
"license": "SSPL",
66
"main": "index.json",

configs/tsconfig-devtools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mongodb-js/tsconfig-devtools",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Shared Devtools Typescript configuration",
55
"license": "SSPL",
66
"files": [
@@ -11,7 +11,7 @@
1111
"typescript": "^5.0.4"
1212
},
1313
"devDependencies": {
14-
"@mongodb-js/prettier-config-devtools": "^1.0.1",
14+
"@mongodb-js/prettier-config-devtools": "^1.0.2",
1515
"prettier": "^3.5.3"
1616
},
1717
"scripts": {

0 commit comments

Comments
 (0)