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.

30 lines
625 B

  1. name: "Run tests"
  2. on:
  3. schedule:
  4. - cron: '0 0 * * *'
  5. push:
  6. branches:
  7. - master
  8. pull_request:
  9. branches:
  10. - master
  11. env:
  12. FORMAT_FILE: README.md
  13. jobs:
  14. test:
  15. name: 'Validate README.md'
  16. runs-on: ubuntu-latest
  17. steps:
  18. - name: Checkout repository
  19. uses: actions/checkout@v2
  20. - name: Validate Markdown format
  21. run: build/validate_format.py ${FORMAT_FILE}
  22. - name: Validate pull request changes
  23. run: build/github-pull.sh ${{ github.repository }} ${{ github.event.pull_request.number }} ${FORMAT_FILE}
  24. if: github.event_name == 'pull_request'