diff --git a/docs/src/docs/welcome/install.mdx b/docs/src/docs/welcome/install.mdx index 628c05d058fe..876036abfb4a 100644 --- a/docs/src/docs/welcome/install.mdx +++ b/docs/src/docs/welcome/install.mdx @@ -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/golangci@1.0.1 +``` + +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: diff --git a/docs/src/docs/welcome/integrations.mdx b/docs/src/docs/welcome/integrations.mdx index bdbab863eb90..4607f0f11b70 100644 --- a/docs/src/docs/welcome/integrations.mdx +++ b/docs/src/docs/welcome/integrations.mdx @@ -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). +