typos.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Whenever an open PR is updated, the workflow will be triggered
  2. name: Language Linting
  3. on:
  4. push:
  5. branches:
  6. - main
  7. pull_request:
  8. types: [opened, synchronize, reopened, ready_for_review]
  9. branches:
  10. - main
  11. jobs:
  12. typos:
  13. if: github.event.pull_request.draft == false
  14. name: Check for typos
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v4
  18. - name: Check for typos
  19. uses: crate-ci/typos@master
  20. # Check for invalid links in the repository
  21. link-check:
  22. if: github.event.pull_request.draft == false
  23. name: Check For Invalid Links
  24. runs-on: ubuntu-latest
  25. steps:
  26. - uses: actions/checkout@v4
  27. - name: Restore lychee cache
  28. uses: actions/cache@v4
  29. with:
  30. path: .lycheecache
  31. key: cache-lychee-${{ github.sha }}
  32. restore-keys: cache-lychee-
  33. - name: Run lychee
  34. uses: lycheeverse/lychee-action@v2
  35. with:
  36. args: --base . --config ./lychee.toml './**/*.md'
  37. fail: true