ci.yml 985 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: GitHub CI
  2. permissions:
  3. contents: read
  4. on:
  5. pull_request:
  6. push:
  7. branches:
  8. - master
  9. schedule:
  10. - cron: 0 0 * * 0
  11. defaults:
  12. run:
  13. shell: 'bash -Eeuo pipefail -x {0}'
  14. jobs:
  15. markdownfmt:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v3
  19. - run: docker pull tianon/markdownfmt
  20. - run: .ci/check-markdownfmt.sh
  21. ymlfmt:
  22. runs-on: ubuntu-latest
  23. steps:
  24. - uses: actions/checkout@v3
  25. - run: docker pull tianon/ymlfmt
  26. - run: .ci/check-ymlfmt.sh
  27. short:
  28. runs-on: ubuntu-latest
  29. steps:
  30. - uses: actions/checkout@v3
  31. - run: .ci/check-short.sh
  32. required-files:
  33. runs-on: ubuntu-latest
  34. steps:
  35. - uses: actions/checkout@v3
  36. - run: .ci/check-required-files.sh
  37. no-readme:
  38. runs-on: ubuntu-latest
  39. steps:
  40. - uses: actions/checkout@v3
  41. with:
  42. fetch-depth: 0
  43. - run: .ci/check-pr-no-readme.sh
  44. if: ${{ github.event_name == 'pull_request' }}