smoke ci #1
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: smoke | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install deps | |
| run: | | |
| python -m venv .venv | |
| .venv/bin/pip install -U pip | |
| .venv/bin/pip install -r requirements.txt | |
| - name: Install kind & kubectl | |
| uses: helm/kind-action@v1 | |
| with: | |
| cluster_name: kbox | |
| node_image: kindest/node:v1.29.2 | |
| - name: Render scenario | |
| run: .venv/bin/python tools/generate_challenge.py --seed 101 --difficulty easy | |
| - name: Apply manifests (smoke) | |
| run: | | |
| kubectl apply -f challenges/rendered/ns.yaml | |
| kubectl apply -f challenges/rendered/pvc.yaml || true | |
| kubectl apply -f challenges/rendered/app-deploy.yaml | |
| kubectl apply -f challenges/rendered/app-svc.yaml | |
| kubectl apply -f challenges/rendered/busybox.yaml | |
| - name: Artifacts (rendered) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rendered | |
| path: challenges/rendered/ |