ci.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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@v4
  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@v4
  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@v4
  31. - run: .ci/check-short.sh
  32. required-files:
  33. runs-on: ubuntu-latest
  34. steps:
  35. - uses: actions/checkout@v4
  36. - run: .ci/check-required-files.sh
  37. no-readme:
  38. runs-on: ubuntu-latest
  39. steps:
  40. - uses: actions/checkout@v4
  41. with:
  42. fetch-depth: 0
  43. - run: .ci/check-pr-no-readme.sh
  44. if: ${{ github.event_name == 'pull_request' }}
  45. metadata:
  46. runs-on: ubuntu-latest
  47. steps:
  48. - uses: actions/checkout@v4
  49. - run: .ci/check-metadata.sh