diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index e321054..0374688 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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