Skip to content

Commit 10d26cc

Browse files
CI: Add new job to check health of package-lock.json (#3151)
1 parent e08993a commit 10d26cc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,24 @@ jobs:
5555
exit 1
5656
fi
5757
58+
checkPackageLock:
59+
name: Check health of package-lock.json file
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Checkout repo
63+
uses: actions/checkout@v2
64+
65+
- name: Setup Node.js
66+
uses: actions/setup-node@v1
67+
with:
68+
node-version: ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
69+
70+
- name: Run npm install
71+
run: npm install --package-lock-only --engine-strict --strict-peer-deps
72+
73+
- name: Check that package-lock.json is in sync with package.json
74+
run: git diff --exit-code package-lock.json
75+
5876
integrationTests:
5977
name: Run integration tests
6078
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)