Skip to content

Commit 09af1cd

Browse files
committed
chore: fix ci tasks
1 parent 6e5e9d8 commit 09af1cd

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: unit tests
1+
name: lint
22

33
on:
44
push:
@@ -11,15 +11,11 @@ jobs:
1111

1212
runs-on: ubuntu-latest
1313

14-
strategy:
15-
matrix:
16-
node-version: [12.x, 14.x, 16.x, 18.x]
17-
1814
steps:
1915
- uses: actions/checkout@v3
20-
- name: Use Node.js ${{ matrix.node-version }}
16+
- name: Use Node.js LTS
2117
uses: actions/setup-node@v3
2218
with:
23-
node-version: ${{ matrix.node-version }}
19+
node-version: lts/*
2420
- run: npm clean-install
25-
- run: npm run check:test
21+
- run: npm run check:lint

.github/workflows/test.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: lint
1+
name: unit tests
22

33
on:
44
push:
@@ -11,11 +11,20 @@ jobs:
1111

1212
runs-on: ubuntu-latest
1313

14+
strategy:
15+
matrix:
16+
node-version: [12.x, 14.x, 16.x, 18.x]
17+
driver-version: [ 'current', 'latest' ]
18+
1419
steps:
1520
- uses: actions/checkout@v3
16-
- name: Use Node.js LTS
21+
- name: Use Node.js ${{ matrix.node-version }}
1722
uses: actions/setup-node@v3
1823
with:
19-
node-version: lts/*
24+
node-version: ${{ matrix.node-version }}
2025
- run: npm clean-install
21-
- run: npm run check:lint
26+
27+
- if: ${{ matrix.driver-version == 'latest' }}
28+
run: npm install --no-save mongodb/node-mongodb-native#main
29+
30+
- run: npm run check:test

.mocharc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/mocharc.json",
33
"extension": ["js", "ts"],
44
"recursive": true,
5-
"failZero": true,
5+
"failZero": false,
66
"sort": true,
77
"color": true,
88
"require": [

src/index.js

Whitespace-only changes.

0 commit comments

Comments
 (0)