Skip to content

Commit 43d40f9

Browse files
authoredDec 4, 2024··
Merge pull request #120 from nikobockerman/ci-check-npm-dedupe
Minor improvements
2 parents 32262c0 + 7ff6318 commit 43d40f9

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed
 

Diff for: ‎.github/renovate.json5

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
lockFileMaintenance: {
55
enabled: true,
66
},
7+
separateMinorPatch: true,
78
packageRules: [
89
{
910
description: "Disable docker pinning for devcontainer",

Diff for: ‎.github/workflows/check-npm.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check - npm and dependencies
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/actions/npm-tools-setup/**"
7+
- ".github/workflows/check-npm.yaml"
8+
- "package.json"
9+
- "package-lock.json"
10+
workflow_call:
11+
workflow_dispatch:
12+
13+
jobs:
14+
duplicate-dependencies:
15+
name: Check for duplicate dependencies
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20+
- name: Setup npm tools
21+
uses: ./.github/actions/npm-tools-setup
22+
- name: Check for duplicate dependencies
23+
run: npm run check:npm:dedupe

Diff for: ‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"scripts": {
33
"check:github-actions": "git ls-files '.github/**.yaml' | xargs -t -I {} action-validator {}",
4+
"check:npm:dedupe": "npm find-dupes",
45
"check:prettier": "prettier --check .",
56
"check:pyright": "pyright",
67
"check:renovateconfig": "npx --package=renovate -- renovate-config-validator --strict",

Diff for: ‎pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ sync = ["sync:uv", "sync:npm"]
2020

2121
"check:github-actions" = "npm run check:github-actions"
2222
"check:mypy" = "mypy ."
23+
"check:npm:dedupe" = "npm run check:npm:dedupe"
2324
"check:prettier" = "npm run check:prettier"
2425
"check:pyright" = "npm run check:pyright"
2526
"check:renovateconfig" = "npm run check:renovateconfig"
@@ -34,6 +35,7 @@ check = [
3435
"check:mypy",
3536
"check:pytest",
3637
"check:github-actions",
38+
"check:npm:dedupe",
3739
"check:renovateconfig"
3840
]
3941

0 commit comments

Comments
 (0)
Please sign in to comment.