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@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
  19. with:
  20. egress-policy: audit
  21. - name: Checkout
  22. uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
  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