.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:
parent
7160e54b25
commit
3bcce32c9b
1 changed files with 16 additions and 0 deletions
16
.github/workflows/tests.yml
vendored
16
.github/workflows/tests.yml
vendored
|
|
@ -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/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue