diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 195bb8a6d..581ef2ba0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,7 @@ variables: BUNDLE: "extensions-git.flatpak" JS_LOG: "js-report.txt" LINT_LOG: "eslint-report.xml" + LINT_MR_LOG: "eslint-mr-report.xml" .only_default: &only_default only: @@ -51,6 +52,21 @@ eslint: junit: ${LINT_LOG} when: always +eslint_mr: + image: registry.gitlab.gnome.org/gnome/gnome-shell/extension-ci:v2 + stage: review + script: + - export NODE_PATH=$(npm root -g) + - ./.gitlab-ci/run-eslint --output-file ${LINT_MR_LOG} --format junit + --remote ${CI_MERGE_REQUEST_PROJECT_URL}.git + --branch ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME} + only: + - merge_requests + artifacts: + reports: + junit: ${LINT_MR_LOG} + when: always + potfile_check: image: registry.gitlab.gnome.org/gnome/gnome-shell/extension-ci:v2 stage: review