Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependency vulnerabilities #33

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches-ignore: [master, main]
jobs:
build:
runs-on: ubuntu-latest
runs-on: neo-x86-2xs
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches: [master, main]
jobs:
tag:
runs-on: ubuntu-latest
runs-on: neo-x86-2xs
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
Expand All @@ -16,7 +16,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.extract_version.outputs.version }}
coverage:
runs-on: ubuntu-latest
runs-on: neo-x86-2xs
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [opened, synchronize, reopened]
jobs:
validate:
runs-on: ubuntu-latest
runs-on: neo-x86-2xs
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
with:
db-connection-env-var: MONGO_CONNECTION_STRING
run-command: yarn ci:validate
binary-version: 4.4.6
binary-version: 6.0.15
instance-dbName: validation
instance-port: 27018
instance-storageEngine: wiredTiger
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ In your .github/workflows folder, add a new job step to the appropriate workflow
with:
db-connection-env-var: MONGODB_CONNECTION_STRING
run-command: yarn use:database
binary-version: 4.4.6
binary-version: 6.0.15
instance-dbName: validation
instance-port: 27017
instance-storageEngine: wiredTiger
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"eslint": "^7.29.0",
"eslint-config-neo": "^0.6.2",
"jest": "^27.0.6",
"mongodb": "^3.6.9",
"mongodb-memory-server-core": "^8.6.0",
"mongodb-memory-server-global": "^8.6.0",
"mongodb": "^6.12.0",
"mongodb-memory-server-core": "^9",
"mongodb-memory-server-global": "^9",
"prettier": "^2.3.2",
"ts-jest": "^27.0.3",
"ts-node": "^10.0.0",
Expand Down
6 changes: 4 additions & 2 deletions test/factory.memory-server-factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let server: MongoMemoryServer;
const expectedPort = 27019;
const expectedDbName = 'validation';
const expectedStorageEngine: StorageEngine = 'wiredTiger';
const expectedVersion = '4.4.6';
const expectedVersion = '6.0.15';

describe('MemoryServerFactory', () => {
describe('generateMemoryServer', () => {
Expand Down Expand Up @@ -90,7 +90,9 @@ describe('MemoryServerFactory', () => {
expectedVersion
);

await expect(promise).rejects.toThrow(`options.port should be >= 0 and < 65536. Received type number (${badPort}).`);
await expect(promise).rejects.toThrow(
`options.port should be >= 0 and < 65536. Received type number (${badPort}).`
);
});

test('unfortunately does NOT throw an error when provided a dbName that is too long', async () => {
Expand Down
Loading
Loading