blog/source/_posts/validity-gitlab-ci-config.md

26 lines
775 B
Markdown
Raw Normal View History

---
title: How to check validity of GitLab CI config
subtitle: How to verify/lint the config.
date: 2018-10-25
tags:
- gitlab
---
It can be frustrating after you push the changes you made to `.gitlab-ci.yml`, only to discover later that it's invalid on gitlab.com. Here's how to verify/lint the config.
Login to GitLab.com and navigate to any of your repo or project. It must be under your account. If you don't have one, simply create a new project or fork one.
Simply add `/-/ci/lint` to the end of your repo link and navigate to that link.
For example,
```
https://gitlab.com/curben/blog/-/ci/lint
```
This is what it looks like,
{% cloudinary '20181025/lint.png' 'Verify .gitlab-ci.yml online' %}
2019-02-09 06:01:22 +00:00
Simply paste the content of your `.gitlab-ci.yml` and 'Validate'.