From 2447ab8ece43ec595372bf71c3e5b3ef32cadb76 Mon Sep 17 00:00:00 2001
From: Sergei Zharinov <zharinov@users.noreply.github.com>
Date: Wed, 14 Jun 2023 17:05:02 +0300
Subject: [PATCH] ci: Move website docs lint from tests to lint job (#22766)

---
 .github/workflows/build.yml | 3 +++
 jest.config.ts              | 8 +-------
 package.json                | 1 +
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 34fadf9050..1192552b2a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -237,6 +237,9 @@ jobs:
       - name: Lint fenced code blocks
         run: yarn doc-fence-check
 
+      - name: Lint website docs
+        run: yarn -s lint-website-docs
+
       - name: Test schema
         run: yarn test-schema
 
diff --git a/jest.config.ts b/jest.config.ts
index 3feb2fcf4c..756ab4b807 100644
--- a/jest.config.ts
+++ b/jest.config.ts
@@ -200,13 +200,7 @@ const testShards: Record<string, ShardConfig> = {
     },
   },
   other: {
-    matchPaths: ['lib', 'test'],
-    threshold: {
-      statements: 91.9,
-      branches: 90.8,
-      functions: 83.3,
-      lines: 92.0,
-    },
+    matchPaths: ['lib'],
   },
 };
 
diff --git a/package.json b/package.json
index d90198bdab..70556f781b 100644
--- a/package.json
+++ b/package.json
@@ -17,6 +17,7 @@
     "debug": "cross-env NODE_OPTIONS=--inspect-brk ts-node lib/renovate.ts",
     "doc-fix": "run-s markdown-lint-fix prettier-fix",
     "doc-fence-check": "node tools/check-fenced-code.mjs",
+    "lint-website-docs": "jest --coverage false test/website-docs.spec.ts",
     "eslint": "eslint . --cache --cache-location .cache/eslint --report-unused-disable-directives",
     "eslint-fix": "eslint --cache --cache-location .cache/eslint --fix . --report-unused-disable-directives",
     "eslint-ci": "eslint . --cache --cache-strategy content --cache-location .cache/eslint --format gha",
-- 
GitLab