K8s Deployment Control Test #60
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: K8s Deployment Control Test | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '!**' | |
| - '.github/workflows/triggers/test-k8s-deployment-control' | |
| - '.github/workflows/test-k8s-deployment-control.yml' | |
| - 'tests/k8s-deployment-control/run-test.sh' | |
| schedule: | |
| - cron: '30 3 * * *' | |
| jobs: | |
| test: | |
| name: "Run deployment control suite on kind/k8s" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: "Clone project repository" | |
| uses: actions/checkout@v3 | |
| - name: "Install Python" | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.8' | |
| - name: "Print Python version" | |
| run: python3 --version | |
| - name: "Install shiv" | |
| run: pip install shiv==1.0.8 | |
| - name: "Generate build version file" | |
| run: ./scripts/create_build_tag_file.sh | |
| - name: "Build local shiv package" | |
| run: ./scripts/build_shiv_package.sh | |
| - name: "Check cgroups version" | |
| run: mount | grep cgroup | |
| - name: "Install kind" | |
| run: ./tests/scripts/install-kind.sh | |
| - name: "Install Kubectl" | |
| run: ./tests/scripts/install-kubectl.sh | |
| - name: "Run k8s deployment control test" | |
| run: ./tests/k8s-deployment-control/run-test.sh |