Add action for detecting code duplicates

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8a601aed33fbdc5654cd2e59f42307161e04e18b
This commit is contained in:
Szymon Kłos 2023-07-03 11:33:04 +02:00 committed by Szymon Kłos
parent 3831e6f4e2
commit 8ce751a3ca

16
.github/workflows/code-duplication.yml vendored Normal file
View 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"