Skip to content

e2e: Basic structure for testing #70

e2e: Basic structure for testing

e2e: Basic structure for testing #70

Workflow file for this run

name: Tests
on:
push:
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- run: make build DRY_RUN=true
e2e:
strategy:
matrix:
distro: [rocky-8, rocky-9, leap]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
VERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
echo "> Install lima ${VERSION}"
curl -fsSL "https://github.com/lima-vm/lima/releases/download/${VERSION}/lima-${VERSION:1}-$(uname -s)-$(uname -m).tar.gz" | sudo tar Cxzvm /usr/local
apt update && apt install -y qemu-utils
- name: E2E ${{ matrix.distro }}
run: make e2e-${{ matrix.distro }}