Validate (lint) `.gitlab-ci.yml` in the Web IDE
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=215575) </details> <!--IssueSummary end--> ### Problem to Solve Currently validating the `.gitlab-ci.yml` file requires users to visit a special `ci/lint` URL within their project and manually copy the contents of their file. If the configuration is not valid, users have to edit that file and then finally copy/paste the valid one back to their editor and commit the changes. ### Proposal Users who are editing the `.gitlab-ci.yml` file in the Web IDE should have access to a `validate` button that runs the current contents of the file through the validator and provides feedback to users. ![Screenshot_2020-05-26_12.27.57](/uploads/40b907498d2446ec3e88c0cee6f4d967/Screenshot_2020-05-26_12.27.57.png) | Description | Error | Success | | ------ | ------ | ------ | | Default | ![image](/uploads/2afe771fef4f5d25391789f9493ec03e/image.png) | ![image](/uploads/6f9e9fb1d371eb2390c03d4043a07990/image.png) | | Dark | ![image](/uploads/8a0a042fc8466e85de3c1679b2433717/image.png) | ![image](/uploads/c9a63706d267a0e872156e1d0389bea3/image.png) | Clicking `Validate` would call the [Lint API](https://docs.gitlab.com/ee/api/lint.html) and then provide feedback to users in the validation tab. ### Availability and Testing The new feature will require some test coverage, system tests and possibly an E2E (depending on how much usage we expect it to get).
issue