1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00

ci: install.sh tested on each supported distribution

The installer was tested by hand in containers before a release; a
change to it, to what it installs or a distribution's packages could
break a fresh install unseen. dev/test-installer.sh installs the
committed HEAD with install.sh in a systemd container of one
distribution and checks that the panel's services run, it has a secret
key and an admin password, and the login page loads. The Installer
workflow runs it on Ubuntu 22.04/24.04/26.04, Debian 12/13, AlmaLinux
10, openSUSE Leap 15.6 and openEuler 24.03 when the installer or conf/
changes, and weekly.
This commit is contained in:
catborise 2026-11-20 15:44:40 +03:00
parent 7e70595fd2
commit 1a39bd3480
2 changed files with 121 additions and 0 deletions

46
.github/workflows/installer.yml vendored Normal file
View file

@ -0,0 +1,46 @@
name: Installer
# install.sh on each supported distribution (dev/test-installer.sh): on each
# push to master (the panel it installs changed), on a pull request that
# changes the installer or what it installs, and weekly, as the
# distributions' packages change under it
on:
push:
branches: [master]
pull_request:
paths:
- install.sh
- webvirtcloud.sh
- conf/**
- dev/test-installer.sh
- .github/workflows/installer.yml
schedule:
- cron: '0 4 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
install:
name: ${{ matrix.image }}
runs-on: ubuntu-latest
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
image:
- ubuntu:22.04
- ubuntu:24.04
- ubuntu:26.04
- debian:12
- debian:13
- almalinux:10
- opensuse/leap:15.6
- openeuler/openeuler:24.03-lts
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install and check the panel
run: dev/test-installer.sh "${{ matrix.image }}"