Skip to content

docs: add GitLab documentation #5497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/src/docs/welcome/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ Also, the action creates GitHub annotations for found issues (you don't need to

![GitHub annotations of the action](./annotations.png)

### GitLab CI

GitLab provides a [guide for integrating golangci-lint into the Code Quality widget](https://docs.gitlab.com/ci/testing/code_quality/#golangci-lint).
A simple quickstart is their [CI component](https://gitlab.com/explore/catalog/components/code-quality-oss/codequality-os-scanners-integration), which can be used like this:

```yaml .gitlab-ci.yml
include:
- component: $CI_SERVER_FQDN/components/code-quality-oss/codequality-os-scanners-integration/[email protected]
```

Note that you [can only reference components in the same GitLab instance as your project](https://docs.gitlab.com/ci/components/#use-a-component)

### Other CI

Here is the other way to install golangci-lint:
Expand Down
3 changes: 2 additions & 1 deletion docs/src/docs/welcome/integrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ source ~/.bashrc

## CI Integration

See our [GitHub Action](/welcome/install/#github-actions).
Check out our [documentation for CI integrations](/welcome/install#ci-installation).

Loading