Added rpmlint workflow
This commit is contained in:
29
.github/workflows/linting.yml
vendored
29
.github/workflows/linting.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user