From 8a90b018c86564f35b9d8c4c2345b248d62eefd1 Mon Sep 17 00:00:00 2001 From: Piotr Walen Date: Fri, 13 Dec 2024 11:58:35 +0100 Subject: [PATCH] chore: add gitlab CI readme --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index f688b45..914da8d 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,8 @@ type License = { You can add License Auditor to your CI pipeline to ensure that the project's dependencies comply with the license policy. To do so, add the following command to your CI configuration: + +### GitHub Actions ``` license-audit: runs-on: ubuntu-latest @@ -170,6 +172,20 @@ You can add License Auditor to your CI pipeline to ensure that the project's dep run: lac --default-config --bail 1 ``` + +### Gitlab CI +``` +audit-licenses: + stage: audit-licenses + <<: *merge_request_job_template + script: + - npm i -g @brainhubeu/lac + - lac --default-config --bail 1 +``` + +The `*merge_request_job_template` should contain base configuration for CI step specific to your project. + + ## Known issues ### "missing: some-package@>=3.0.0, required by some-other-package@5.0.1"