Add action for detecting code duplicates
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: I8a601aed33fbdc5654cd2e59f42307161e04e18b
This commit is contained in:
parent
3831e6f4e2
commit
8ce751a3ca
1 changed files with 16 additions and 0 deletions
16
.github/workflows/code-duplication.yml
vendored
Normal file
16
.github/workflows/code-duplication.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
dry-code-action:
|
||||
runs-on: ubuntu-latest
|
||||
name: Dry Code Action
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Dry Code Action
|
||||
uses: Pposong-Hantaihe/dry-code@v1.0.2
|
||||
with:
|
||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
arguments: "./browser/src"
|
||||
options: "--min-lines=26"
|
||||
|
Loading…
Reference in a new issue