Skip to content

Commit f85a32f

Browse files
committed
ci: add pre-commit-lint to verify
Add pre-commit-linting job to gerrit-verify workflow using compose-repo-linting reusable workflow with pre-commit 4.1.0. Update vote job needs array to include pre-commit-linting. Change-Id: Ibbcd4851a8311863c67810201ce61805d34daac0 Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
1 parent d031efc commit f85a32f

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/gerrit-verify.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,26 @@ jobs:
165165
secrets:
166166
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}
167167

168+
pre-commit-linting:
169+
needs: [prepare, call-gerrit-change-info]
170+
# yamllint disable-line rule:line-length
171+
uses: lfit/releng-reusable-workflows/.github/workflows/compose-repo-linting.yaml@main
172+
with:
173+
GERRIT_BRANCH: ${{ needs.call-gerrit-change-info.outputs.GERRIT_BRANCH }}
174+
GERRIT_CHANGE_ID: ${{ needs.call-gerrit-change-info.outputs.GERRIT_CHANGE_ID }}
175+
GERRIT_CHANGE_NUMBER: ${{ needs.call-gerrit-change-info.outputs.GERRIT_CHANGE_NUMBER }}
176+
GERRIT_CHANGE_URL: ${{ needs.call-gerrit-change-info.outputs.GERRIT_CHANGE_URL }}
177+
GERRIT_EVENT_TYPE: ${{ needs.call-gerrit-change-info.outputs.GERRIT_EVENT_TYPE }}
178+
GERRIT_PATCHSET_NUMBER: ${{ needs.call-gerrit-change-info.outputs.GERRIT_PATCHSET_NUMBER }}
179+
GERRIT_PATCHSET_REVISION: ${{ needs.call-gerrit-change-info.outputs.GERRIT_PATCHSET_REVISION }}
180+
GERRIT_PROJECT: ${{ needs.call-gerrit-change-info.outputs.GERRIT_PROJECT }}
181+
GERRIT_REFSPEC: ${{ needs.call-gerrit-change-info.outputs.GERRIT_REFSPEC }}
182+
PRE_COMMIT_VERSION: "4.1.0"
183+
168184
vote:
169185
if: ${{ always() }}
170-
needs: [call-gerrit-tox-verify, rtd-validation, call-gerrit-change-info]
186+
# yamllint disable-line rule:line-length
187+
needs: [call-gerrit-tox-verify, rtd-validation, call-gerrit-change-info, pre-commit-linting]
171188
runs-on: ubuntu-latest
172189
timeout-minutes: 5
173190
# yamllint disable rule:line-length

0 commit comments

Comments
 (0)