From 8ce751a3caa76e3fab086407781761123c0fd0d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20K=C5=82os?= Date: Mon, 3 Jul 2023 11:33:04 +0200 Subject: [PATCH] Add action for detecting code duplicates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Szymon Kłos Change-Id: I8a601aed33fbdc5654cd2e59f42307161e04e18b --- .github/workflows/code-duplication.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/code-duplication.yml diff --git a/.github/workflows/code-duplication.yml b/.github/workflows/code-duplication.yml new file mode 100644 index 000000000..278394133 --- /dev/null +++ b/.github/workflows/code-duplication.yml @@ -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" +