Skip to content

Commit

Permalink
Add Yaml and MD linting
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Sep 6, 2024
1 parent 755fa2b commit 77041dc
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,40 @@ on: # yamllint disable-line rule:truthy
name: 🧹 Fix PHP coding standards

jobs:
yaml-linting:
timeout-minutes: 4
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v4.1.6

- name: 🧐 Lint YAML files
uses: ibiqlik/action-yamllint@v3.1.1
with:
config_file: .github/.yamllint.yaml
file_or_dir: '.'
strict: true

markdown-linting:
timeout-minutes: 4
runs-on: ubuntu-latest
concurrency:
cancel-in-progress: true
group: markdown-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v4.1.6

- name: 🧐 Lint Markdown files
uses: DavidAnson/markdownlint-cli2-action@v16.0.0
with:
globs: |
**/*.md
!CHANGELOG.md
coding-standards:
timeout-minutes: 4
runs-on: ${{ matrix.os }}
Expand Down
7 changes: 7 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json",
"line-length": false,
"no-inline-html": false,
"first-line-h1": false,
"no-duplicate-heading": false
}

0 comments on commit 77041dc

Please sign in to comment.