From 311248da24cac124d21f587351445a38819a5bc6 Mon Sep 17 00:00:00 2001 From: sarahschwartz <58856580+sarahschwartz@users.noreply.github.com> Date: Fri, 20 Oct 2023 12:51:22 -0600 Subject: [PATCH] split lint & link checks --- .github/workflows/guides.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/guides.yml b/.github/workflows/guides.yml index 305566dc9..6d6ddb07f 100644 --- a/.github/workflows/guides.yml +++ b/.github/workflows/guides.yml @@ -4,9 +4,9 @@ on: pull_request: jobs: - ## CHECK LINKS & LINT - check-links-lint: - name: Lint & Check Links + ## CHECKS ALL GUIDES FOR LINTING + linter: + name: Linter runs-on: ubuntu-latest steps: # SETUP & INSTALL @@ -20,8 +20,22 @@ jobs: # RUN LINT CHECK - name: Lint Check run: markdownlint --config .markdownlint.yaml --ignore-path .markdownlintignore '**/*.mdx' + + ## CHECKS ALL LINKS IN GUIDES + ## RUNS AFTER VERCEL LINK IS DEPLOYED + check-links: + name: Check Links + runs-on: ubuntu-latest + steps: + # SETUP & INSTALL + - name: Checkout repo + uses: actions/checkout@v3 + - uses: ./.github/actions/setup-node + with: + install: false + # RUN SCRIPT TO GENERATE NEW CONFIG WITH VERCEL PREVIEW URL # RUN LINK CHECK - - uses: gaurav-nelson/github-action-markdown-link-check@1.0.12 + - uses: gaurav-nelson/github-action-markdown-link-check with: config-file: 'mlc-config.json' file-extension: 'mdx'