workflow_linter.yaml 564 B

12345678910111213141516171819202122
  1. name: "Infra: Workflow linter"
  2. on:
  3. pull_request:
  4. types:
  5. - "opened"
  6. - "reopened"
  7. - "synchronize"
  8. - "edited"
  9. paths:
  10. - ".github/workflows/**"
  11. jobs:
  12. build-and-test:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v3
  16. with:
  17. fetch-depth: 0
  18. ref: ${{ github.event.pull_request.head.sha }}
  19. - name: Install yamllint
  20. run: sudo apt install -y yamllint
  21. - name: Validate workflow yaml files
  22. run: yamllint .github/workflows/. -d relaxed -f github --no-warnings