Integration gh workflow for test install and uninstall (#6) #22
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 base layer | |
| run: kubectl kustomize base/ | |
| - name: Build stack layer | |
| run: kubectl kustomize stack/ | |
| - name: Verify quick-start labels in base | |
| run: | | |
| kubectl kustomize base/ | grep -q 'app.kubernetes.io/part-of: streamshub-developer-quickstart' | |
| - name: Verify quick-start labels in stack | |
| run: | | |
| kubectl kustomize 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 . |