From 2a7ecc88cfa8e722a6b8399c32964916946e9d14 Mon Sep 17 00:00:00 2001 From: Rowen S Date: Thu, 16 Jan 2025 17:15:55 -0500 Subject: [PATCH] Add smoketest run to github actions. --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ scripts/smoketest.sh | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 496a4f6..11873a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,3 +40,30 @@ jobs: run: | make test-deps make reprotest + - uses: actions/upload-artifact@v4 + id: upload + with: + name: rpm-build + path: rpm-build/RPMS/noarch/*.rpm + if-no-files-found: error + test-rpm: + runs-on: ubuntu-latest + container: + image: registry.fedoraproject.org/fedora:37 + needs: build-rpm + steps: + - run: dnf install -y git make + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Install dependencies + run: | + git config --global --add safe.directory '*' + make test-deps + - uses: actions/download-artifact@v4 + with: + path: rpm-build/RPMS/noarch/ + pattern: "*.rpm" + - name: Install RPM and run smoketest + run: | + make smoketest RPM=rpm-build/RPMS/noarch/*fc37.noarch.rpm diff --git a/scripts/smoketest.sh b/scripts/smoketest.sh index 42d9ae4..4eca893 100755 --- a/scripts/smoketest.sh +++ b/scripts/smoketest.sh @@ -25,4 +25,4 @@ echo "RPM installed. (Wait 60 seconds to begin smoketest)..." sleep 60 echo "Begin smoketest..." -python3 "${TOPLEVEL}/tests/test_keyring.py" && echo "Test complete" || echo "Test failed" +python3 "${TOPLEVEL}/tests/test_keyring.py" \ No newline at end of file