Add prometheus metics component and overlay (#8) #28
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: Validate | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| kustomize-build: | |
| name: Validate Kustomize configs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up kubectl | |
| uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4.0.1 | |
| - name: Build core overlay base | |
| run: kubectl kustomize overlays/core/base/ | |
| - name: Build core overlay stack | |
| run: kubectl kustomize overlays/core/stack/ | |
| - name: Build metrics overlay base | |
| run: kubectl kustomize overlays/metrics/base/ | |
| - name: Build metrics overlay stack | |
| run: kubectl kustomize overlays/metrics/stack/ | |
| - name: Verify quick-start labels in core overlay base | |
| run: | | |
| kubectl kustomize overlays/core/base/ | grep -q 'app.kubernetes.io/part-of: streamshub-developer-quickstart' | |
| - name: Verify quick-start labels in core overlay stack | |
| run: | | |
| kubectl kustomize overlays/core/stack/ | grep -q 'app.kubernetes.io/part-of: streamshub-developer-quickstart' | |
| - name: Verify quick-start labels in metrics overlay base | |
| run: | | |
| kubectl kustomize overlays/metrics/base/ | grep -q 'app.kubernetes.io/part-of: streamshub-developer-quickstart' | |
| - name: Verify quick-start labels in metrics overlay stack | |
| run: | | |
| kubectl kustomize overlays/metrics/stack/ | grep -q 'app.kubernetes.io/part-of: streamshub-developer-quickstart' | |
| shellcheck: | |
| name: Lint shell scripts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Run ShellCheck | |
| uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0 | |
| with: | |
| version: v0.11.0 | |
| scandir: "." | |
| additional_files: "install.sh uninstall.sh update-version.sh" | |
| yamllint: | |
| name: Lint YAML files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install yamllint | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y yamllint | |
| - name: Run yamllint | |
| run: yamllint -d relaxed . |