Skip to content

Commit

Permalink
chore: add gitlab CI readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bh-pwalen committed Dec 13, 2024
1 parent 653139c commit 8a90b01
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 8a90b01

Please sign in to comment.