Skip to content

Commit ce69239

Browse files
Merge master into feature/cwltail
2 parents 80f4e9c + 7dabb7c commit ce69239

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/jscpd.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"pattern": "packages/**/*.ts",
3+
"ignore": ["**node_modules**", "**dist**"],
4+
"gitignore": true,
5+
"threshold": 1.34,
6+
"minLines": 15
7+
}

.github/workflows/node.js.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,24 @@ jobs:
5555
- run: npm run testCompile
5656
- run: npm run lint
5757

58+
jscpd:
59+
needs: lint-commits
60+
runs-on: ubuntu-latest
61+
strategy:
62+
matrix:
63+
node-version: [18.x]
64+
env:
65+
NODE_OPTIONS: '--max-old-space-size=8192'
66+
steps:
67+
- uses: actions/checkout@v4
68+
- name: Use Node.js ${{ matrix.node-version }}
69+
uses: actions/setup-node@v4
70+
with:
71+
node-version: ${{ matrix.node-version }}
72+
- run: npm install jscpd
73+
- name: Run jscpd
74+
run: npx jscpd --config "$GITHUB_WORKSPACE/.github/workflows/jscpd.json"
75+
5876
macos:
5977
needs: lint-commits
6078
name: test macOS

0 commit comments

Comments
 (0)