Skip to content

Commit

Permalink
add license-auditor
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-s-brainhub committed Jun 30, 2020
1 parent 9001066 commit b6bc8ca
Show file tree
Hide file tree
Showing 7 changed files with 7,771 additions and 0 deletions.
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 --id @brainhubeu/react-carousel
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

0 comments on commit b6bc8ca

Please sign in to comment.