Skip to content

Commit

Permalink
chore: yaml linter
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Sep 19, 2023
1 parent cb3aa1b commit 1c56df6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: celestiaorg/.github/.github/actions/[email protected]
- uses: celestiaorg/.github/.github/actions/[email protected]
41 changes: 19 additions & 22 deletions .github/workflows/markdown-linter.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
name: "Markdown Lint and Link Check"
on:
push:
paths:
- 'docs/**/*.md'
- 'guides/**/*.md'

jobs:
markdown-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install markdownlint-cli
run: npm install -g [email protected]
shell: bash
- name: Install markdownlint-cli
run: npm install -g [email protected]
shell: bash

- name: Run markdownlint
run: markdownlint --config .markdownlint.yaml **/*.md
shell: bash
- name: Run markdownlint
run: markdownlint --config .markdownlint.yaml **/*.md
shell: bash

markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Run markdown link check
uses: gaurav-nelson/[email protected]
with:
config-file: '.github/markdown-link-check-config.json'
folder-path: '.'
- name: Run markdown link check
uses: gaurav-nelson/[email protected]
with:
config-file: '.github/markdown-link-check-config.json'
folder-path: '.'

0 comments on commit 1c56df6

Please sign in to comment.