Merge branch 'ci-fairy' into 'main'

ci: Add ci-fairy check

See merge request agx/feedbackd!171
This commit is contained in:
Guido Günther
2025-04-23 20:25:51 +00:00
+19 -1
View File
@@ -1,6 +1,6 @@
---
include:
- remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/34039cd573a2df832d465bc9e4c5f543571f5241/templates/ci-fairy.yml'
- remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/6a40df92957c8ce9ee741aaccc5daaaf70545b1e/templates/ci-fairy.yml'
- remote: 'https://gitlab.gnome.org/guidog/meta-phosh/-/raw/0ed15edd821f8afacbf7a9c0f2a6266873289115/ci/phosh-common-jobs.yml'
stages:
@@ -9,6 +9,9 @@ stages:
- style-checks
- package
variables:
FDO_UPSTREAM_REPO: agx/feedbackd
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
@@ -104,3 +107,18 @@ check-meson:
extends:
- .phosh-check-meson
# Sanity checks of MR settings and commit logs
check-commit-log:
extends:
- .fdo.ci-fairy
stage: style-checks
variables:
GIT_DEPTH: "100"
needs: []
script: |
ci-fairy check-commits --signed-off-by --junit-xml=commit-message-junit-report.xml
artifacts:
reports:
junit: commit-message-junit-report.xml
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'