Refactor to use OpenAPI SDK #1656
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: unit-tests | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - "charts/**" | |
| push: | |
| branches: | |
| - 'main' | |
| - 'release-*' | |
| paths-ignore: | |
| - "charts/**" | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| name: Unit tests | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v4 | |
| with: | |
| go-version-file: go.mod | |
| - name: Create k8s Kind Cluster | |
| uses: helm/kind-action@v1.4.0 | |
| - name: Install CRDs | |
| run: | | |
| make install | |
| make install-prometheus-crds | |
| - run: make unit-tests | |
| - name: Patch Coverage | |
| uses: seriousben/go-patch-cover-action@v1 | |
| with: | |
| version: v0.2.0 | |
| coverage_filename: cover.out |