Rename to deb-installation-test.sh

This commit is contained in:
Aoran Zeng
2025-06-15 23:38:04 +08:00
parent 5a1c1f5470
commit aea231bbc0
5 changed files with 61 additions and 53 deletions

View File

@@ -110,18 +110,14 @@ jobs:
- name: Test package installation
run: |
version="${{ steps.get_version.outputs.version }}"
# Install the package
sudo dpkg -i dist/chsrc_${version}-1_amd64.deb || true
sudo apt-get install -f -y || true
# Run basic tests
if [ -f "pkg/DEB/deb-test.sh" ]; then
sudo bash pkg/DEB/deb-test.sh
else
# Basic manual test
chsrc help
echo "Package installation test passed!"
fi
# Run DEB installation tests
bash pkg/DEB/deb-installation-test.sh
- name: Upload DEB artifact
uses: actions/upload-artifact@v4