Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds YAMLlint and markdownlint #22

Merged
merged 3 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

version: 2
updates:
- package-ecosystem: "github-actions"
Expand All @@ -9,3 +11,4 @@ updates:
labels:
- task
- dependencies
- automerge
2 changes: 2 additions & 0 deletions .github/workflows/check_deps.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

name: Check Dependencies

on:
Expand Down
26 changes: 25 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,38 @@
---

name: CI

on:
pull_request:
push:
branches: [ "main" ]
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
markdownlint-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run markdownlint-cli
uses: nosborn/[email protected]
with:
files: .
config_file: ".markdownlint.yaml"

yamllint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run YAML Lint
uses: actionshub/yamllint@main

build:
name: Build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,6 +66,8 @@ jobs:

needs:
- build
- markdownlint-cli
- yamllint

steps:
- uses: actions/checkout@v4
Expand Down
13 changes: 13 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
default: true

# no-hard-tabs
MD010:
code_blocks: false

# no-multiple-blanks
MD012:
maximum: 2

# line-length
MD013: false
9 changes: 9 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
extends: default
rules:
line-length:
max: 256
level: warning
truthy:
ignore: |
/.github/workflows/*.yml