From e772618904f25a8f06b70b6526113e6d9318113f Mon Sep 17 00:00:00 2001 From: Jasmin Oster Date: Mon, 3 Mar 2025 14:24:39 +0100 Subject: [PATCH 1/2] docs(install): Add explanation for GitLab CI --- docs/src/docs/welcome/install.mdx | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: From 80b6f7ef5cc5615befc589aae59ea9ac2d64cfce Mon Sep 17 00:00:00 2001 From: Jasmin Oster Date: Mon, 3 Mar 2025 14:24:39 +0100 Subject: [PATCH 2/2] docs(integrations): Link to our CI documentation --- docs/src/docs/welcome/integrations.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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). +