Refactor smoke tests, add dynamic matrix calculated from overlay deps, rewrite test scripts in java (jbang) #29
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 (${{ matrix.overlay }}/${{ matrix.layer }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| overlay: [core, metrics] | |
| layer: [base, stack] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up kubectl | |
| uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4.0.1 | |
| - name: Build | |
| run: kubectl kustomize overlays/${{ matrix.overlay }}/${{ matrix.layer }}/ | |
| - name: Verify quick-start labels | |
| run: | | |
| kubectl kustomize overlays/${{ matrix.overlay }}/${{ matrix.layer }}/ \ | |
| | 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 . |