CAPI e2e tests #10
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: | |
e2e-tests: | |
name: Build provider images | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@v2 | |
with: | |
egress-policy: audit | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Setup requirements | |
run: | | |
sudo apt install make | |
sudo snap install go --classic | |
sudo snap install docker | |
sudo docker network create kind --driver=bridge -o com.docker.network.bridge.enable_ip_masquerade=true | |
sudo docker network ls | |
- name: Build provider images | |
run: sudo make docker-build-e2e | |
- name: Build images | |
run: | | |
cd templates/docker | |
sudo docker build . -t k8s-snap:dev | |
- name: Run e2e tests | |
run: sudo make test-e2e |