diff --git a/.circleci/config.yml b/.circleci/config.yml
index a6cbcd3a880..d8e70df5ab8 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -33,101 +33,6 @@ commands:
- ~/.cache/
jobs:
- snyk-scan:
- docker:
- - image: cimg/python:3.10
- steps:
- - attach_workspace:
- at: ~/project
- - checkout
- - platform-helpers-general/step-load-dependencies
- - platform-helpers-general/step-run-snyk-monitor:
- scan-all-projects: true
- skip-unresolved: false
- run-on-non-main: true
-
- inclusive-linting:
- docker:
- - image: cimg/base:current
- resource_class: small
- steps:
- - checkout
- - run: bash ./scripts/inclusive-lint.sh
-
- node_build_checks:
- docker:
- - image: cimg/node:14.21.3-browsers
- resource_class: large
- environment:
- NODE_OPTIONS: '--max_old_space_size=3584'
- steps:
- - checkout
- - install-deps
- - run:
- name: Lint
- command: yarn lint-all
- - run:
- name: Build
- command: yarn build
- - run:
- name: Run checks
- command: ./scripts/yarn-checks-ci.sh
- - store_test_results:
- path: test_results
- - store_artifacts:
- path: /tests/cypress/screenshots
- - persist_to_workspace:
- root: ~/project
- paths:
- - .
- - .git
-
- nightly_link_checker:
- docker:
- - image: cimg/node:14.21.3-browsers
- resource_class: large
- environment:
- NODE_OPTIONS: '--max_old_space_size=3584'
- steps:
- - checkout
- - install-deps
- - run:
- name: Run script and capture logs
- command: yarn build
- - run:
- name: Run link checker
- command: yarn broken-link-checker:external 2>&1 | tee output.txt || true
- - run:
- name: Extract URLs from log
- command: |
- grep -o 'Link: https\?://[^[:space:]]*' output.txt | sed 's/Link: //' > urls.txt
- cat urls.txt
- when: always
- - run:
- name: Remove False Positives
- command: |
- comm -23 <(sort urls.txt | uniq) <(sort falsepos.txt | uniq) > broken_external_urls.txt
- - run:
- name: Print urls to log
- command: |
- cat broken_external_urls.txt
- - run:
- name: Send failure email if broken URLs found
- when: on_success
- command: |
- broken_urls=$(comm -23 <(sort urls.txt | uniq) <(sort falsepos.txt | uniq))
- broken_urls=$(echo "$broken_urls" | sed 's/ /\n/g')
- formatted_broken_urls=$(echo "$broken_urls" | awk '{printf "%s
\n", $0, $0}')
-
- if [ -n "$broken_urls" ]; then
- curl --location --request POST 'https://www.cinotify.cc/api/notify' \
- -d "to=${NOTIFY_EMAIL}&subject=BROKEN URLS DETECTED: Dev Docs Nightly Job&type=text/html&body=
- Nightly link checker job complete. See the list of broken URLs below.
- Click here
- to see job details.
-