crds.yml 673 B

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