Skip to content

Commit e993786

Browse files
authored
feat: Upgrade Node Package Manager lock file package-lock.json to version 2 (#1729)
1 parent a206231 commit e993786

File tree

4 files changed

+30153
-1837
lines changed

4 files changed

+30153
-1837
lines changed

.github/workflows/ci.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
timeout-minutes: 5
1212
runs-on: ubuntu-18.04
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Check NPM lock file version
1616
uses: mansona/npm-lockfile-version@v1
1717
with:
18-
version: 1
18+
version: 2
1919
build:
2020
runs-on: ubuntu-latest
2121
timeout-minutes: 30
@@ -37,24 +37,22 @@ jobs:
3737
- name: Fix git protocol for Node 14
3838
if: ${{ startsWith(matrix.NODE_VERSION, '14.') }}
3939
run: sudo git config --system url."https://github".insteadOf "ssh://git@github"
40-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v3
4141
- name: Use Node.js
42-
uses: actions/setup-node@v1
42+
uses: actions/setup-node@v3
4343
with:
4444
node-version: ${{ matrix.NODE_VERSION }}
4545
- name: Cache Node.js modules
46-
uses: actions/cache@v2
46+
uses: actions/cache@v3
4747
with:
4848
path: ~/.npm
49-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
49+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
5050
restore-keys: |
51-
${{ runner.os }}-node-
51+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
5252
- run: npm ci
53-
- run: npm install -g mongodb-runner
54-
- run: mongodb-runner start
5553
- run: npm run lint
5654
- run: npm test -- --maxWorkers=4
57-
- run: npm run integration
55+
- run: npm run test:mongodb
5856
env:
5957
CI: true
6058
- run: bash <(curl -s https://codecov.io/bash)

integration/test/ParseFileTest.js

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ describe('Parse.File', () => {
132132

133133
const query = new Parse.Query(TestObject);
134134
query.fromLocalDatastore();
135+
query.equalTo('objectId', object.id);
135136
const results = await query.find();
136137

137138
const url = results[0].get('file').url();

0 commit comments

Comments
 (0)