crds.yml 655 B

123456789101112131415161718192021222324252627282930313233
  1. name: CRDs
  2. on:
  3. push:
  4. branches:
  5. - main
  6. paths:
  7. - 'apis/**'
  8. pull_request:
  9. paths:
  10. - 'apis/**'
  11. workflow_dispatch: {}
  12. permissions:
  13. contents: read
  14. jobs:
  15. crd-tests:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
  19. with:
  20. egress-policy: audit
  21. - name: Checkout
  22. uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
  23. with:
  24. fetch-depth: 0
  25. - name: Generate crds for testing
  26. run: make crds.generate.tests
  27. - name: Run crd tests
  28. run: make test.crds