Skip to content

Commit e772618

Browse files
author
Jasmin Oster
committed
docs(install): Add explanation for GitLab CI
1 parent 54b8442 commit e772618

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/src/docs/welcome/install.mdx

Lines changed: 12 additions & 0 deletions
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:

0 commit comments

Comments
 (0)