Add package installation testing to Gitea workflow and fix package metadata
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Build and Publish Debian Packages
|
||||
name: Build, Test and Publish Debian Packages
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -9,6 +9,10 @@ on:
|
||||
- 'sources/**'
|
||||
- 'buildpackages.sh'
|
||||
- '.gitea/workflows/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -35,9 +39,61 @@ jobs:
|
||||
name: debian-packages
|
||||
path: staging/*.deb
|
||||
|
||||
test-install:
|
||||
name: Test Package Installation
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download built artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: debian-packages
|
||||
path: staging
|
||||
|
||||
- name: Install system runtime dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3 python3-pip python3-venv ffmpeg
|
||||
|
||||
- name: Test install eendoe-repository
|
||||
run: |
|
||||
echo "=== Installing eendoe-repository ==="
|
||||
sudo apt-get install -y ./staging/eendoe-repository-*.deb
|
||||
dpkg -s eendoe-repository | grep -q "Status: install ok installed"
|
||||
test -f /etc/apt/sources.list.d/eendoe.list
|
||||
echo "eendoe-repository: OK"
|
||||
|
||||
- name: Test install eendoe-srs
|
||||
run: |
|
||||
echo "=== Installing eendoe-srs ==="
|
||||
sudo apt-get install -y ./staging/eendoe-srs-*.deb
|
||||
dpkg -s eendoe-srs | grep -q "Status: install ok installed"
|
||||
test -x /usr/share/srs/objs/srs
|
||||
echo "eendoe-srs: OK"
|
||||
|
||||
- name: Test install eendoe-hyperdeck
|
||||
run: |
|
||||
echo "=== Installing eendoe-hyperdeck ==="
|
||||
sudo apt-get install -y ./staging/eendoe-hyperdeck-*.deb
|
||||
dpkg -s eendoe-hyperdeck | grep -q "Status: install ok installed"
|
||||
test -d /usr/share/hyperdeck
|
||||
test -f /etc/hyperdeck/config.json
|
||||
test -f /usr/lib/systemd/system/hyperdeck.service
|
||||
python3 -m py_compile /usr/share/hyperdeck/main.py
|
||||
echo "eendoe-hyperdeck: OK"
|
||||
|
||||
- name: Test package uninstall and cleanup
|
||||
run: |
|
||||
echo "=== Testing package removal ==="
|
||||
sudo apt-get remove -y eendoe-hyperdeck eendoe-srs eendoe-repository
|
||||
echo "Package removal: OK"
|
||||
|
||||
publish:
|
||||
name: Publish to eendoe repository
|
||||
needs: build
|
||||
needs: [build, test-install]
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user