.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.
This commit is contained in:
Ondřej Budai 2020-11-12 09:02:34 +01:00 committed by msehnout
parent 7160e54b25
commit 3bcce32c9b

View file

@ -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/*