Creating a workflow for End 2 End testing #35
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 | |
steps: | |
- name: brew | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
- name: lima | |
run: | | |
limactl start --tty=false --name=bpfdev --mount-writable=true template://ubuntu-lts | |
limactl shell bpfdev exec -- sudo apt-get install net-tools | |
limactl shell bpfdev exec -- ifconfig -a | |
- name: clone | |
run: | | |
limactl shell bpfdev exec -- sudo apt-get install git | |
limactl shell bpfdev exec -- /usr/bin/bash -c "cd; pwd" | |
limactl shell bpfdev exec -- sudo git clone https://github.com/l3af-project/l3af-arch.git | |
limactl shell bpfdev exec -- sudo git clone https://github.com/l3af-project/l3afd.git | |
- name: run l3afd | |
run: | | |
limactl shell bpfdev exec -- /bin/bash -c "cd l3af-arch/dev_environment && ./setup_linux_dev_env.sh" | |