Creating a workflow for End 2 End testing #71
Workflow file for this run
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: CI-E2E | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: macos-latest | |
timeout-minutes: 60 | |
steps: | |
- name: brew | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
- name: lima | |
run: | | |
brew install socket_vmnet curl hey | |
limactl sudoers >etc_sudoers.d_lima | |
sudo install -o root etc_sudoers.d_lima /etc/sudoers.d/lima | |
limactl start --tty=false --name=bpfdev --mount-writable=true --network="lima:shared" template://ubuntu-lts | |
- name: clone | |
run: | | |
limactl shell bpfdev exec -- sudo apt-get install git | |
limactl shell bpfdev exec -- /usr/bin/bash -c "cd" | |
limactl shell bpfdev exec -- sudo git clone -b E2E https://github.com/Atul-source/l3af-arch.git | |
- name: run l3afd | |
run: | | |
limactl shell bpfdev exec -- /bin/bash -c "cd l3af-arch/dev_environment && sudo ./setup_linux_dev_env.sh" | |
limactl shell bpfdev exec -- /usr/bin/bash -c "cd /etc" | |
limactl shell bpfdev exec -- cat hosts | |
limactl shell bpfdev exec -- sudo grep -v "::1 ip6-localhost ip6-loopback" hosts > tmpfile && sudo mv tmpfile hosts | |
cd l3af-arch/dev_environment/e2e_test | |
./test_suite.sh | |
limactl stop bpfdev | |
exit 0 |