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@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
  19. with:
  20. egress-policy: audit
  21. - name: Checkout
  22. uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
  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