Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

add license-auditor #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .circle/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2.1
executors:
node-executor:
docker:
- image: circleci/node:14.4.0
working_directory: ~/app

jobs:
test:
executor: node-executor
steps:
- checkout
- run: yarn install --non-interactive
- run: yarn danger ci --failOnErrors
workflows:
version: 2
build_and_test:
jobs:
- test
14 changes: 14 additions & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const licenseAuditor = require('@brainhubeu/license-auditor');

const whitelist = require('./license/whitelist');
const blacklist = require('./license/blacklist');

licenseAuditor({
whitelistedLicenses: whitelist,
blacklistedLicenses: blacklist,
projectPath: `.`,
ciManager: {
warn,
fail,
},
});
Loading