JSPM

gitlab-ci-lint

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2698
  • Score
    100M100P100Q124683F
  • License ISC

Gitlab-ci cli to lint .gitlab-ci.yml files

Package Exports

  • gitlab-ci-lint

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gitlab-ci-lint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gitlab-ci-lint

Gitlab-ci cli to lint .gitlab-ci.yml files

Usage

Install

npm install -g gitlab-ci-lint

CLI

  Usage: gitlab-ci-lint [options] <file>

  Options:

    -h, --help            output usage information
    -V, --version         output the version number
    -u, --url [URL]       Use alternative Gitlab URL
    -t, --token [TOKEN]   Provide Gitlab personal access token, when it's needed

examples

  • .gitlab-ci.yml is in the current directory
gitlab-ci-lint
  • Alternative file
gitlab-ci-lint <filename>
  • Alternative Gitlab URL
gitlab-ci-lint --url https://git.my.corp
  • With Gitlab personal access token
gitlab-ci-lint --token token-string-here123

API

  • with filename param
const gitlabCILint = require('gitlab-ci-lint')

gitlabCILint.lintFile('.gitlab-ci.yml')
  .then((result) => console.log(result))
  • with filename, baseURL and token params, accordingly
const gitlabCILint = require('gitlab-ci-lint')

gitlabCILint.lintFile('.gitlab-ci.yml', 'https://git.my.corp', 'token-string-here123')
  .then((result) => console.log(result))