mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-09 21:33:23 +08:00
Rename to deb-installation-test.sh
This commit is contained in:
12
.github/workflows/pkg-deb.yml
vendored
12
.github/workflows/pkg-deb.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user