This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Add Local KVM/libvirt Testing Infrastructure #12
This file contains hidden or 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: Infrastructure Tests | |
on: | |
push: | |
branches: [main, develop] | |
paths: | |
- "infrastructure/**" | |
- "infrastructure/tests/**" | |
- "Makefile" | |
- ".github/workflows/infrastructure.yml" | |
pull_request: | |
branches: [main, develop] | |
paths: | |
- "infrastructure/**" | |
- "infrastructure/tests/**" | |
- "Makefile" | |
- ".github/workflows/infrastructure.yml" | |
jobs: | |
validate-infrastructure: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install OpenTofu | |
run: | | |
curl -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh | |
chmod +x install-opentofu.sh | |
sudo ./install-opentofu.sh --install-method deb | |
rm install-opentofu.sh | |
tofu version | |
- name: Install yamllint | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y yamllint | |
- name: Test script permissions | |
run: | | |
test -x infrastructure/tests/test-local-setup.sh | |
test -x infrastructure/tests/test-integration.sh | |
- name: Run syntax tests | |
env: | |
CI: true | |
run: | | |
make ci-test-syntax | |
- name: Validate Makefile targets | |
run: | | |
make help | |
make workflow-help | |
# Note: Full VM testing is not run in CI as it requires KVM/nested virtualization | |
# which is not available in GitHub Actions runners | |
documentation-check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check documentation links | |
run: | | |
# Verify documentation files exist | |
test -f infrastructure/docs/quick-start.md | |
test -f infrastructure/docs/local-testing-setup.md | |
test -f infrastructure/README.md | |
test -f application/README.md | |
# Check for common documentation issues | |
grep -q "Quick Start" infrastructure/docs/quick-start.md | |
grep -q "OpenTofu" infrastructure/docs/local-testing-setup.md | |
grep -q "make" README.md |