51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
name: E2E Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test-e2e:
|
|
name: Run on Ubuntu
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Clone the code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Install docker
|
|
run: |
|
|
apt update
|
|
apt install -y apt-transport-https ca-certificates curl software-properties-common
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
apt update
|
|
apt install -y docker-ce docker-ce-cli containerd.io
|
|
# update-alternatives --set iptables /usr/sbin/iptables-nft
|
|
# update-alternatives --set ip6tables /usr/sbin/ip6tables-nft
|
|
# update-alternatives --set arptables /usr/sbin/arptables-nft
|
|
# update-alternatives --set ebtables /usr/sbin/ebtables-nft
|
|
dockerd &
|
|
docker --version
|
|
|
|
- name: Install the latest version of kind
|
|
run: |
|
|
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-arm64
|
|
chmod +x ./kind
|
|
sudo mv ./kind /usr/local/bin/kind
|
|
|
|
- name: Verify kind installation
|
|
run: kind version
|
|
|
|
- name: Create kind cluster
|
|
run: kind create cluster
|
|
|
|
- name: Running Test e2e
|
|
run: |
|
|
go mod tidy
|
|
make test-e2e
|