Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pradel/gitlab-ci-validate
Checks if your .gitlab-ci.yml file is valid.
https://github.com/pradel/gitlab-ci-validate
cli gitlab gitlab-ci npm-package validate
Last synced: about 2 months ago
JSON representation
Checks if your .gitlab-ci.yml file is valid.
- Host: GitHub
- URL: https://github.com/pradel/gitlab-ci-validate
- Owner: pradel
- License: mit
- Created: 2017-04-24T08:35:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-24T22:56:20.000Z (over 2 years ago)
- Last Synced: 2024-11-01T09:33:45.360Z (about 2 months ago)
- Topics: cli, gitlab, gitlab-ci, npm-package, validate
- Language: JavaScript
- Size: 2.76 MB
- Stars: 20
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitlab-ci-validate
[![npm version](https://badge.fury.io/js/gitlab-ci-validate.svg)](https://badge.fury.io/js/gitlab-ci-validate)
[![npm](https://img.shields.io/npm/dm/gitlab-ci-validate.svg)](https://www.npmjs.com/package/gitlab-ci-validate)Checks if your .gitlab-ci.yml file is valid.
Thanks to [@FGRibreau](https://github.com/FGRibreau) for the post about [validating .gitlab-ci.yml files](http://blog.fgribreau.com/2017/04/validate-gitlab-gitlab-ciyml-one-liner.html)!
![](assets/example.gif)
### Install:
```
yarn global add gitlab-ci-validate
npm i -g gitlab-ci-validate
```### Usage:
```
# It will try to find if .gitlab-ci.yml is present on the current folder if no file path is provided
$ gitlab-ci-validate# You can specify your own gitlab host if you need
$ gitlab-ci-validate --host https://my-gitlab-url# You can provide a private token if you need
$ gitlab-ci-validate --private-token
```### Options
```
gitlab-ci-validate validate --helpDescription
Manage set of tracked repositoriesUsage
$ gitlab-ci-validate validate [file] [options]Options
-H, --host Change the gitlab host (default to https://gitlab.com)
-P, --private-token Authenticate to gitlab api using a private token
-p, --project-id Toggle individual project scoped execution, specify the project id context
-w, --error-warn Toggle warnings as an error condition
-h, --help Displays this message
```## License
MIT © [Léo Pradel](https://www.leopradel.com/)