CAPI e2e tests #37
This file contains 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: E2E Tests | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build-e2e-images: | |
name: Build E2E Images | |
runs-on: [self-hosted, jammy, xlarge] | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Install requirements | |
run: | | |
sudo apt install make | |
sudo snap install go --classic | |
- name: Build provider images | |
run: sudo make docker-build-e2e | |
- name: Cleanup space | |
# Github runners are tight on space and will fail if we don't clean up before. | |
run: sudo docker builder prune -f | |
- name: Build images | |
run: | | |
cd templates/docker | |
sudo docker build . -t k8s-snap:dev | |
- name: Cleanup space | |
# Github runners are tight on space and will fail if we don't clean up before. | |
run: | | |
sudo docker builder prune -f | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@v10 | |
with: | |
root-reserve-mb: 512 | |
swap-size-mb: 1024 | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
remove-haskell: 'true' | |
remove-codeql: 'true' | |
remove-docker-images: 'true' | |
- name: Create docker network | |
run: | | |
sudo docker network create kind --driver=bridge -o com.docker.network.bridge.enable_ip_masquerade=true | |
df -h | |
- name: Space check | |
run: | | |
ls | |
df -h | |
pwd | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Run e2e tests | |
run: | | |
ls | |
pwd | |
sudo make test-e2e |