Skip to content

Commit

Permalink
Merge pull request #5 from EnAccess/improve-ci-setup-and-configuration
Browse files Browse the repository at this point in the history
Improve `markdownlint` CI setup
  • Loading branch information
dmohns authored Oct 26, 2023
2 parents 34f4bee + 8de5fb4 commit 606fee0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Lint
name: Markdown Lint

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
markdownlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run markdownlint
uses: DavidAnson/markdownlint-cli2-action@v13
with:
globs: |
docs/**/*.md
13 changes: 13 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Disable some built-in rules
config:
line-length: false
no-inline-html: false
first-line-h1: false

# Define glob expressions to use (only valid at root)
globs:
- "**/*.md"

# Define glob expressions to ignore
# ignores:
# - "ignore*.md"
10 changes: 0 additions & 10 deletions .markdownlint.yaml

This file was deleted.

0 comments on commit 606fee0

Please sign in to comment.