Skip to content

Commit d0ec328

Browse files
authored
docs: add GitLab documentation (#5497)
1 parent 54b8442 commit d0ec328

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

docs/src/docs/welcome/install.mdx

+12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ Also, the action creates GitHub annotations for found issues (you don't need to
2525

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

28+
### GitLab CI
29+
30+
GitLab provides a [guide for integrating golangci-lint into the Code Quality widget](https://docs.gitlab.com/ci/testing/code_quality/#golangci-lint).
31+
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:
32+
33+
```yaml .gitlab-ci.yml
34+
include:
35+
- component: $CI_SERVER_FQDN/components/code-quality-oss/codequality-os-scanners-integration/[email protected]
36+
```
37+
38+
Note that you [can only reference components in the same GitLab instance as your project](https://docs.gitlab.com/ci/components/#use-a-component)
39+
2840
### Other CI
2941
3042
Here is the other way to install golangci-lint:

docs/src/docs/welcome/integrations.mdx

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,5 @@ source ~/.bashrc
8585

8686
## CI Integration
8787

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

0 commit comments

Comments
 (0)