Skip to content

Commit 21df2dc

Browse files
committed
chore: CI check that licenses of all dependencies are at least permissive
1 parent 05a72df commit 21df2dc

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: 18.17.1
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",
@@ -56,5 +57,12 @@
5657
"hooks": {
5758
"pre-commit": "npm run gen-and-git-add-everything"
5859
}
60+
},
61+
"config": {
62+
"allowedLicenseTypes": [
63+
"permissive",
64+
"publicDomain",
65+
"uncategorized"
66+
]
5967
}
6068
}

0 commit comments

Comments
 (0)