Skip to content

Commit b6bc8ca

Browse files
add license-auditor
1 parent 9001066 commit b6bc8ca

File tree

7 files changed

+7771
-0
lines changed

7 files changed

+7771
-0
lines changed

.circle/config.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2.1
2+
executors:
3+
node-executor:
4+
docker:
5+
- image: circleci/node:14.4.0
6+
working_directory: ~/app
7+
8+
jobs:
9+
test:
10+
executor: node-executor
11+
steps:
12+
- checkout
13+
- run: yarn install --non-interactive
14+
- run: yarn danger ci --failOnErrors --id @brainhubeu/react-carousel
15+
workflows:
16+
version: 2
17+
build_and_test:
18+
jobs:
19+
- test

dangerfile.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const licenseAuditor = require('@brainhubeu/license-auditor');
2+
3+
const whitelist = require('./license/whitelist');
4+
const blacklist = require('./license/blacklist');
5+
6+
licenseAuditor({
7+
whitelistedLicenses: whitelist,
8+
blacklistedLicenses: blacklist,
9+
projectPath: `.`,
10+
ciManager: {
11+
warn,
12+
fail,
13+
},
14+
});

0 commit comments

Comments
 (0)