Skip to content

test: run kind tests on GHA #26

test: run kind tests on GHA

test: run kind tests on GHA #26

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-docker-desktop:
name: test-docker-desktop
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache Docker Desktop packages
id: cache-docker-desktop
uses: actions/cache@v3
with:
key: "docker-desktop-4.21.1-amd64"
path: |
~/downloads/
- name: Download Docker Desktop
run: |
mkdir -p ~/.downloads
curl -sSL https://desktop.docker.com/linux/main/amd64/docker-desktop-4.21.1-amd64.deb > ~/.downloads/docker-desktop.deb
if: ${{ steps.cache-docker-desktop.outputs.cache-hit != 'true' }}
- name: Install and Run Docker Desktop
run: |
sudo apt update
sudo apt install moby-cli
sudo apt install ~/.downloads/docker-desktop.deb
jq '.licenseTermsVersion = 2' ~/.docker/desktop/settings.json > temp.json
mv temp.json ~/.docker/desktop/settings.json
systemctl --user start docker-desktop
until docker ps; do echo "docker not ready, sleep 10 s and try again"; sleep 10; done
echo "Docker started and ready"
docker version
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '>=1.20.0'
- name: Install Kind
uses: helm/kind-action@v1.5.0
with:
version: "v0.20.0"
install_only: true
- name: Install ctlptl
run: make install
- name: Test on Kind
run: ./test/kind/e2e.sh