Skip to content

Test Panel Installer #23

Test Panel Installer

Test Panel Installer #23

Workflow file for this run

name: Test Panel Installer
on:
schedule:
# At 09:00 on Saturday
- cron: "0 9 * * 6"
push:
paths:
- "installers/panel.sh"
- "lib/lib.sh"
branches: ["Production"]
pull_request:
paths:
- "installers/panel.sh"
- "lib/lib.sh"
branches: ["Production"]
jobs:
install_panel:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu_focal
- ubuntu_jammy
- ubuntu_noble
- debian_buster
- debian_bullseye
- debian_bookworm
- rockylinux_8
- rockylinux_9
- almalinux_8
- almalinux_9
steps:
- uses: actions/checkout@v3
- name: Cache Vagrant boxes
uses: actions/cache@v3
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ matrix.os }}-${{ hashFiles('Vagrantfile') }}
restore-keys: |
${{ runner.os }}-vagrant-${{ matrix.os }}
- name: Show Vagrant version
run: vagrant --version
- name: Run vagrant up
run: vagrant up ${{ matrix.os }}
- name: Run script in vagrant env
run: vagrant ssh ${{ matrix.os }} -c "sudo -i bash /vagrant/.github/workflow_scripts/panel-install.sh"
- name: Check if installed correctly
run: vagrant ssh ${{ matrix.os }} -c "curl http://localhost/auth/login"