From 4153db39d4f1076c3392f5b1f1b83cf227b65449 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Tue, 30 May 2023 12:34:31 +0200 Subject: [PATCH] Added rpmlint workflow --- .github/workflows/linting.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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