From e80e48d122b758c982dc601b993ddd72ac0e90be Mon Sep 17 00:00:00 2001 From: Mikael Hugo Date: Fri, 8 May 2026 15:22:06 +0200 Subject: [PATCH] ci: enable jscpd duplicate detection and test timing artifact Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cee3d0e33..89cdb4722 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,6 +116,9 @@ jobs: PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} run: bash scripts/require-tests.sh + - name: Detect copy-paste duplication + run: npx jscpd --diff origin/main --threshold 0.05 --ignore '**/*.test.ts' --ignore '**/*.test.mjs' --ignore 'node_modules/**' --ignore 'dist/**' --ignore 'web/**' + build: timeout-minutes: 15 needs: detect-changes @@ -160,7 +163,14 @@ jobs: run: npm run validate-pack - name: Run unit tests - run: npm run test:unit + run: npx vitest run --config vitest.config.ts 2>&1 | tee .artifacts/test-timing.txt + + - name: Upload test timing artifact + uses: actions/upload-artifact@v4 + with: + name: test-timing + path: .artifacts/test-timing.txt + retention-days: 7 - name: Run package tests run: npm run test:packages