From 3bcce32c9b389975d31c7243a487739d3504c25e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Thu, 12 Nov 2020 09:02:34 +0100 Subject: [PATCH] .github: add rpmlint rpmlint errors are usually not a big deal but it's always nice when we can catch them early. This commit introduces a new Github workflow that builds an SRPM and runs rpmlint against it. --- .github/workflows/tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 491442b32..eebc9bc2e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -64,3 +64,19 @@ jobs: ignore: vendor # We don't want to fix the code in vendored dependencies env: SHELLCHECK_OPTS: -e SC1091 -e SC2002 # don't check /etc/os-release sourcing and allow useless cats to live inside our codebase + + rpmlint: + name: "📦 RPMlint" + runs-on: ubuntu-latest + container: registry.fedoraproject.org/fedora:33 + steps: + - name: Install dependencies + run: sudo dnf install -y rpmlint rpm-build make git-core + + - uses: actions/checkout@v2 + + - name: Create SRPM + run: make srpm + + - name: Run rpmlint + run: rpmlint rpmbuild/SRPMS/*