Skip to content

Commit

Permalink
split lint & link checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz committed Oct 20, 2023
1 parent a796bab commit 311248d
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/guides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 311248d

Please sign in to comment.