Skip to content

Commit f481506

Browse files
committed
chore: CI check that licenses of all dependencies are at least permissive
1 parent 0df6e81 commit f481506

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/code-tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ jobs:
2020
node-version: 14.x
2121
- name: Install OpenActive Test Suite
2222
run: npm install
23+
- name: Check licenses of all dependencies are at least permissive
24+
run: npx npm-consider install --test
2325
- name: Run Checks on the Code (Test the Tests!)
2426
run: npm test

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "OpenActive Test Suite",
55
"private": true,
66
"main": "start.js",
7+
"license": "MIT",
78
"scripts": {
89
"start": "node start.js",
910
"debug": "node --inspect start.js -- --runInBand",
@@ -54,5 +55,12 @@
5455
"hooks": {
5556
"pre-commit": "npm run gen-and-git-add-everything"
5657
}
58+
},
59+
"config": {
60+
"allowedLicenseTypes": [
61+
"permissive",
62+
"publicDomain",
63+
"uncategorized"
64+
]
5765
}
5866
}

0 commit comments

Comments
 (0)