Jump to content

Cli/ref/mw gitlab ci lint

From mediawiki.org
< Cli | ref

mw gitlab ci lint

[edit]

Checks if your .gitlab-ci.yml file is valid.

mw gitlab ci lint [flags]

Examples

[edit]
$ glab ci lint
# Uses .gitlab-ci.yml in the current directory

$ glab ci lint .gitlab-ci.yml

$ glab ci lint path/to/.gitlab-ci.yml

Options

[edit]
      --dry-run        Run pipeline creation simulation.
      --include-jobs   The response should include the list of jobs that would exist in a static check or pipeline simulation.
      --ref string     When dry-run is true, sets the branch or tag context for validating the CI/CD YAML configuration.

Options inherited from parent commands

[edit]
      --help              Help for this command
      --no-interaction    Do not ask any interactive questions
  -R, --repo OWNER/REPO   Select another repository using the OWNER/REPO or `GROUP/NAMESPACE/REPO` format or full URL or git URL
  -v, --verbose count     Increase output verbosity. Example: --verbose=2 or -vv

SEE ALSO

[edit]