Commit 93470b33 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Make sure docs only merge requests can run CI

By passing empty needs because they really doesn't need anything
parent b5057a4a
......@@ -46,9 +46,7 @@ docs lint:
- .docs:rules:docs-lint
image: "registry.gitlab.com/gitlab-org/gitlab-docs:docs-lint"
stage: test
needs:
- job: "retrieve-tests-metadata"
artifacts: false
needs: []
script:
- scripts/lint-doc.sh
# Lint Markdown
......
......@@ -3,9 +3,7 @@
- .default-tags
- .default-retry
stage: test
needs:
- job: "retrieve-tests-metadata"
artifacts: false
needs: []
cache:
key: "qa-framework-jobs:v1"
paths:
......
......@@ -12,9 +12,7 @@ code_quality:
- .default-retry
- .reports:rules:code_quality
stage: test
needs:
- job: "retrieve-tests-metadata"
artifacts: false
needs: []
image: docker:stable
allow_failure: true
services:
......@@ -54,9 +52,7 @@ sast:
- .reports:rules:sast
stage: test
allow_failure: true
needs:
- job: "retrieve-tests-metadata"
artifacts: false
needs: []
artifacts:
paths:
- gl-sast-report.json # GitLab-specific
......@@ -94,9 +90,7 @@ dependency_scanning:
- .default-retry
- .reports:rules:dependency_scanning
stage: test
needs:
- job: "retrieve-tests-metadata"
artifacts: false
needs: []
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
......
......@@ -248,9 +248,7 @@ danger-review:
- .review:rules:danger
image: registry.gitlab.com/gitlab-org/gitlab-build-images:danger
stage: test
needs:
- job: "retrieve-tests-metadata"
artifacts: false
needs: []
script:
- git version
- node --version
......
......@@ -23,12 +23,13 @@ cache gems:
extends:
- .default-tags
- .default-retry
dependencies: []
needs: []
gitlab_git_test:
extends:
- .minimal-job
- .setup:rules:gitlab_git_test
stage: test
script:
- spec/support/prepare-gitlab-git-test-for-commit --check-for-changes
......@@ -36,5 +37,6 @@ no_ee_check:
extends:
- .minimal-job
- .setup:rules:no_ee_check
stage: test
script:
- scripts/no-ee-check
......@@ -6,7 +6,8 @@ lint-ci-gitlab:
- .default-retry
- .yaml:rules
image: sdesbure/yamllint:latest
dependencies: []
stage: test
needs: []
variables:
LINT_PATHS: .gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates changelogs
script:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment