---
name: Files Lint
on:
  pull_request:
  push:
    branches:
      - main

permissions:
  contents: read  # for actions/checkout to fetch code

jobs:
  action-lint:
    runs-on: ubuntu-latest
    steps:
      - name: checkout-action
        uses: actions/checkout@v5

      - name: actionlint
        uses: raven-actions/actionlint@v2.0.1

  yamllint:
    runs-on: ubuntu-latest
    steps:
      - name: checkout-action
        uses: actions/checkout@v5

      - name: yamllint
        uses: ibiqlik/action-yamllint@v3

  typos:
    runs-on: ubuntu-latest
    steps:
      - name: checkout-action
        uses: actions/checkout@v5

      - name: typos-action
        uses: crate-ci/typos@v1.39.0

  markdownlint:
    runs-on: ubuntu-latest
    steps:
      - name: checkout-action
        uses: actions/checkout@v5

      - name: markdownlint-cli2-action
        uses: DavidAnson/markdownlint-cli2-action@v20.0.0

  editorconfig:
    runs-on: ubuntu-latest
    steps:
      - name: checkout-action
        uses: actions/checkout@v5

      - name: editorconfig-checker-action
        uses: editorconfig-checker/action-editorconfig-checker@v2
