Skip to content

Commit

Permalink
Run rpmlint in Actions to catch mistakes like one in 5558630
Browse files Browse the repository at this point in the history
  • Loading branch information
mirekdlugosz committed Oct 10, 2024
1 parent 24d19b2 commit 390a8cf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
- run: sudo apt-get install -y shellcheck
- run: sudo apt-get install -y shellcheck rpmlint
- name: run shellcheck
run: shellcheck ./bin/*
- name: run shfmt
run: shfmt -i 2 --diff ./bin/*

- name: run rpmlint
env:
RPMLINT_EXTRA_CONF: "nobuild.rpmlint.toml"
run: |
echo 'Filters = ["no-%build-section"]' > "$RPMLINT_EXTRA_CONF"
rpmlint -c "$RPMLINT_EXTRA_CONF" -s quipucords-installer.spec

0 comments on commit 390a8cf

Please sign in to comment.