forked from z8run/z8run
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 823 Bytes
/
Copy pathcode-quality.yml
File metadata and controls
39 lines (30 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Code Quality
on:
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
duplication:
name: Code Duplication Check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version-file: .node-version
- name: Install jscpd
run: npm install -g jscpd
- name: Run duplication detection
run: jscpd --config .jscpd.json .
- name: Upload duplication report
if: always() && hashFiles('.jscpd-report/**') != ''
uses: actions/upload-artifact@v7
with:
name: jscpd-report
path: .jscpd-report/
retention-days: 30