You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
774 B

  1. name: Markdown Linting
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. paths:
  7. - '.github/workflows/lint-md.yml'
  8. - '.prettier*'
  9. - '**/*.md'
  10. - '!AUTHORS.md'
  11. - 'package.json'
  12. - 'yarn.lock'
  13. pull_request:
  14. paths:
  15. - '.github/workflows/lint-md.yml'
  16. - '.prettier*'
  17. - '**/*.md'
  18. - '!AUTHORS.md'
  19. - 'package.json'
  20. - 'yarn.lock'
  21. jobs:
  22. lint:
  23. runs-on: ubuntu-latest
  24. steps:
  25. - name: Clone repository
  26. uses: actions/checkout@v3
  27. - name: Set up Node.js
  28. uses: actions/setup-node@v3
  29. with:
  30. cache: yarn
  31. - name: Install all yarn packages
  32. run: yarn --frozen-lockfile
  33. - name: Prettier
  34. run: yarn prettier --check "**/*.md"