Initial commit: docker compose config
Release Docker multi arch / docker (push) Has been cancelled
Test Install Script / Test Script Syntax (push) Has been cancelled
Test Install Script / Test on almalinux-10 (default) (push) Has been cancelled
Test Install Script / Test on almalinux-10 (root) (push) Has been cancelled
Test Install Script / Test on almalinux-8 (default) (push) Has been cancelled
Test Install Script / Test on almalinux-8 (root) (push) Has been cancelled
Test Install Script / Test on almalinux-9 (default) (push) Has been cancelled
Test Install Script / Test on almalinux-9 (root) (push) Has been cancelled
Test Install Script / Test on amazonlinux-2 (default) (push) Has been cancelled
Test Install Script / Test on amazonlinux-2 (root) (push) Has been cancelled
Test Install Script / Test on debian-11 (default) (push) Has been cancelled
Test Install Script / Test on debian-11 (root) (push) Has been cancelled
Test Install Script / Test on debian-12 (default) (push) Has been cancelled
Test Install Script / Test on debian-12 (root) (push) Has been cancelled
Test Install Script / Test on debian-13 (default) (push) Has been cancelled
Test Install Script / Test on debian-13 (root) (push) Has been cancelled
Test Install Script / Test on fedora-latest (default) (push) Has been cancelled
Test Install Script / Test on fedora-latest (root) (push) Has been cancelled
Test Install Script / Test on rocky-10 (default) (push) Has been cancelled
Test Install Script / Test on rocky-10 (root) (push) Has been cancelled
Test Install Script / Test on rocky-8 (default) (push) Has been cancelled
Test Install Script / Test on rocky-8 (root) (push) Has been cancelled
Test Install Script / Test on rocky-9 (default) (push) Has been cancelled
Test Install Script / Test on rocky-9 (root) (push) Has been cancelled
Test Install Script / Test on ubuntu-22.04 (default) (push) Has been cancelled
Test Install Script / Test on ubuntu-22.04 (root) (push) Has been cancelled
Test Install Script / Test on ubuntu-24.04 (default) (push) Has been cancelled
Test Install Script / Test on ubuntu-24.04 (root) (push) Has been cancelled
Release Docker multi arch / docker (push) Has been cancelled
Test Install Script / Test Script Syntax (push) Has been cancelled
Test Install Script / Test on almalinux-10 (default) (push) Has been cancelled
Test Install Script / Test on almalinux-10 (root) (push) Has been cancelled
Test Install Script / Test on almalinux-8 (default) (push) Has been cancelled
Test Install Script / Test on almalinux-8 (root) (push) Has been cancelled
Test Install Script / Test on almalinux-9 (default) (push) Has been cancelled
Test Install Script / Test on almalinux-9 (root) (push) Has been cancelled
Test Install Script / Test on amazonlinux-2 (default) (push) Has been cancelled
Test Install Script / Test on amazonlinux-2 (root) (push) Has been cancelled
Test Install Script / Test on debian-11 (default) (push) Has been cancelled
Test Install Script / Test on debian-11 (root) (push) Has been cancelled
Test Install Script / Test on debian-12 (default) (push) Has been cancelled
Test Install Script / Test on debian-12 (root) (push) Has been cancelled
Test Install Script / Test on debian-13 (default) (push) Has been cancelled
Test Install Script / Test on debian-13 (root) (push) Has been cancelled
Test Install Script / Test on fedora-latest (default) (push) Has been cancelled
Test Install Script / Test on fedora-latest (root) (push) Has been cancelled
Test Install Script / Test on rocky-10 (default) (push) Has been cancelled
Test Install Script / Test on rocky-10 (root) (push) Has been cancelled
Test Install Script / Test on rocky-8 (default) (push) Has been cancelled
Test Install Script / Test on rocky-8 (root) (push) Has been cancelled
Test Install Script / Test on rocky-9 (default) (push) Has been cancelled
Test Install Script / Test on rocky-9 (root) (push) Has been cancelled
Test Install Script / Test on ubuntu-22.04 (default) (push) Has been cancelled
Test Install Script / Test on ubuntu-22.04 (root) (push) Has been cancelled
Test Install Script / Test on ubuntu-24.04 (default) (push) Has been cancelled
Test Install Script / Test on ubuntu-24.04 (root) (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,122 @@
|
||||
name: Test Install Script
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- "installTorrServerLinux.sh"
|
||||
- ".github/workflows/test-install-script.yml"
|
||||
- ".github/scripts/test-install-script.sh"
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- "installTorrServerLinux.sh"
|
||||
- ".github/workflows/test-install-script.yml"
|
||||
- ".github/scripts/test-install-script.sh"
|
||||
workflow_dispatch:
|
||||
|
||||
# OSes that require version 135 due to glibc < 2.32
|
||||
# Version 136+ requires glibc >= 2.32
|
||||
env:
|
||||
GLIBC_LIMITED_OSES: "debian-11|almalinux-8|rocky-8|amazonlinux-2"
|
||||
MAX_RETRIES: "3"
|
||||
RETRY_DELAY: "60"
|
||||
|
||||
jobs:
|
||||
test-script-syntax:
|
||||
name: Test Script Syntax
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Test script syntax
|
||||
run: |
|
||||
chmod +x installTorrServerLinux.sh
|
||||
bash -n installTorrServerLinux.sh
|
||||
echo "✓ Script syntax is valid"
|
||||
|
||||
- name: Test help command
|
||||
run: |
|
||||
./installTorrServerLinux.sh --help > /dev/null
|
||||
./installTorrServerLinux.sh help > /dev/null
|
||||
echo "✓ Help command works"
|
||||
|
||||
test-install-script:
|
||||
name: Test on ${{ matrix.os }} (${{ matrix.test-user }})
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-22.04
|
||||
- ubuntu-24.04
|
||||
- debian-11
|
||||
- debian-12
|
||||
- debian-13
|
||||
- fedora-latest
|
||||
- almalinux-8
|
||||
- almalinux-9
|
||||
- almalinux-10
|
||||
- rocky-8
|
||||
- rocky-9
|
||||
- rocky-10
|
||||
- amazonlinux-2
|
||||
test-user: [root, default]
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Get Docker image for OS
|
||||
id: get-image
|
||||
run: |
|
||||
# Map OS to Docker image
|
||||
case "${{ matrix.os }}" in
|
||||
ubuntu-22.04) IMAGE="ubuntu:22.04" ;;
|
||||
ubuntu-24.04) IMAGE="ubuntu:24.04" ;;
|
||||
debian-11) IMAGE="debian:11" ;;
|
||||
debian-12) IMAGE="debian:12" ;;
|
||||
debian-13) IMAGE="debian:13" ;;
|
||||
fedora-latest) IMAGE="fedora:latest" ;;
|
||||
almalinux-8) IMAGE="almalinux:8" ;;
|
||||
almalinux-9) IMAGE="almalinux:9" ;;
|
||||
almalinux-10) IMAGE="almalinux:10" ;;
|
||||
rocky-8) IMAGE="rockylinux/rockylinux:8" ;;
|
||||
rocky-9) IMAGE="rockylinux/rockylinux:9" ;;
|
||||
rocky-10) IMAGE="rockylinux/rockylinux:10" ;;
|
||||
amazonlinux-2) IMAGE="amazonlinux:2" ;;
|
||||
*)
|
||||
echo "Warning: Unknown OS ${{ matrix.os }}, using ubuntu:22.04 as default"
|
||||
IMAGE="ubuntu:22.04"
|
||||
;;
|
||||
esac
|
||||
echo "image=$IMAGE" >> $GITHUB_OUTPUT
|
||||
echo "Using Docker image: $IMAGE for OS: ${{ matrix.os }}"
|
||||
|
||||
- name: Run tests in container
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v "$PWD:/workspace" \
|
||||
-w /workspace \
|
||||
--privileged \
|
||||
-e MATRIX_OS="${{ matrix.os }}" \
|
||||
-e TEST_USER="${{ matrix.test-user }}" \
|
||||
-e GLIBC_LIMITED_OSES="${{ env.GLIBC_LIMITED_OSES }}" \
|
||||
-e MAX_RETRIES="${{ env.MAX_RETRIES }}" \
|
||||
-e RETRY_DELAY="${{ env.RETRY_DELAY }}" \
|
||||
"${{ steps.get-image.outputs.image }}" \
|
||||
bash -c "
|
||||
set -e
|
||||
|
||||
# Make test script executable
|
||||
chmod +x .github/scripts/test-install-script.sh
|
||||
|
||||
# Run the test script
|
||||
.github/scripts/test-install-script.sh
|
||||
"
|
||||
Reference in New Issue
Block a user