Added rpmlint workflow

This commit is contained in:
Erik Reider 2023-05-30 12:34:31 +02:00
parent ffb33de32b
commit 4153db39d4

View File

@ -23,3 +23,32 @@ jobs:
dir: src/
conf: .vala-lint.conf
fail: true
rpmlint:
container: fedora:latest
runs-on: ubuntu-latest
steps:
- name: Install rpmlint
run: dnf -y install rpmlint rpkg
- name: Check out sources
uses: actions/checkout@v3
with:
fetch-depth: 0
path: swaync
- name: Copy spec into root dir
run: |
cd swaync
cp ./build-scripts/swaync.rpkg.spec ./
- name: Generate spec
run: |
cd swaync
mkdir -p specs
rpkg spec --source --outdir specs
- name: Start linting
run: |
cd swaync
rpmlint ./specs/swaync.rpkg.spec