Skip to content

Commit

Permalink
ci: run some basic tests to check our rpm and deb packages work
Browse files Browse the repository at this point in the history
  • Loading branch information
agateau-gg committed Oct 28, 2024
1 parent b7137aa commit 74a9571
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build_release_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,47 @@ jobs:
packages/ggshield-*.zip
packages/ggshield-*.rpm
packages/ggshield_*.deb
linux_package_smoke_tests:
needs: build_os_packages
runs-on: ubuntu-22.04
container: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
image:
- debian:oldstable
- debian:stable
- rockylinux/rockylinux:8.8
- opensuse/leap

steps:
- name: Download OS packages
uses: actions/download-artifact@v4
with:
pattern: os-packages-ubuntu-22.04
path: packages
merge-multiple: true

- name: Setup
run: |
case "${{ matrix.image }}" in
debian:*)
apt update
apt install --no-install-recommends -y git
dpkg -i packages/*.deb
;;
rockylinux*)
yum install -y git
rpm -i packages/*.rpm
;;
opensuse*)
zypper install git
rpm -i packages/*.rpm
;;
esac
- name: Smoke test
run: |
ggshield --version
ggshield --help

0 comments on commit 74a9571

Please sign in to comment.