ci.yml 954 B

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