Add prometheus metics component and overlay (#8) #18
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: Integration Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| smoke-minikube: | |
| name: smoke-minikube (${{ matrix.overlay }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| overlay: [core, metrics] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Start Minikube | |
| id: minikube | |
| uses: medyagh/setup-minikube@e9e035a86bbc3caea26a450bd4dbf9d0c453682e # v0.0.21 | |
| with: | |
| minikube-version: 'latest' | |
| addons: registry,ingress,ingress-dns | |
| insecure-registry: 'localhost:5000,10.0.0.0/24' | |
| start-args: '--extra-config=kubeadm.ignore-preflight-errors=SystemVerification --extra-config=apiserver.authorization-mode=RBAC,Node' | |
| - name: Smoke test | |
| uses: ./.github/actions/smoke-test | |
| with: | |
| timeout: 300s | |
| overlay: ${{ matrix.overlay }} | |
| smoke-kind: | |
| name: smoke-kind (${{ matrix.overlay }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| overlay: [core, metrics] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Create Kind cluster | |
| uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0 | |
| with: | |
| config: .github/config/kind-config.yaml | |
| - name: Deploy ingress-nginx | |
| run: | | |
| kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.1/deploy/static/provider/kind/deploy.yaml | |
| kubectl wait --namespace ingress-nginx \ | |
| --for=condition=Ready pod \ | |
| --selector=app.kubernetes.io/component=controller \ | |
| --timeout=120s | |
| - name: Smoke test | |
| uses: ./.github/actions/smoke-test | |
| with: | |
| timeout: 300s | |
| overlay: ${{ matrix.overlay }} |