Skip to content

Commit

Permalink
chore: CI check that licenses of all dependencies are at least permis…
Browse files Browse the repository at this point in the history
…sive (#555)
  • Loading branch information
nickevansuk authored Aug 6, 2024
1 parent 949e19c commit 729855c
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/code-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ jobs:
node-version: 18.17.1
- name: Install OpenActive Test Suite
run: npm install
- name: Check licenses of all dependencies are at least permissive
run: |
npx npm-reflect install --test
for dir in ./packages/*; do (cd "$dir" && npx npm-reflect install --test); done
- name: Run Checks on the Code (Test the Tests!)
run: npm test
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "OpenActive Test Suite",
"private": true,
"main": "start.js",
"license": "MIT",
"scripts": {
"start": "node start.js",
"debug": "node --inspect start.js -- --runInBand",
Expand Down Expand Up @@ -56,5 +57,12 @@
"hooks": {
"pre-commit": "npm run gen-and-git-add-everything"
}
},
"config": {
"allowedLicenseTypes": [
"permissive",
"publicDomain",
"uncategorized"
]
}
}
7 changes: 7 additions & 0 deletions packages/openactive-broker-microservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,12 @@
},
"engines": {
"node": "18.17.1"
},
"config": {
"allowedLicenseTypes": [
"permissive",
"publicDomain",
"uncategorized"
]
}
}
7 changes: 7 additions & 0 deletions packages/openactive-integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,12 @@
},
"engines": {
"node": "18.17.1"
},
"config": {
"allowedLicenseTypes": [
"permissive",
"publicDomain",
"uncategorized"
]
}
}
7 changes: 7 additions & 0 deletions packages/openactive-openid-browser-automation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,12 @@
},
"engines": {
"node": "18.17.1"
},
"config": {
"allowedLicenseTypes": [
"permissive",
"publicDomain",
"uncategorized"
]
}
}
7 changes: 7 additions & 0 deletions packages/openactive-openid-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,12 @@
},
"engines": {
"node": "18.17.1"
},
"config": {
"allowedLicenseTypes": [
"permissive",
"publicDomain",
"uncategorized"
]
}
}
7 changes: 7 additions & 0 deletions packages/openactive-openid-test-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,12 @@
},
"engines": {
"node": "18.17.1"
},
"config": {
"allowedLicenseTypes": [
"permissive",
"publicDomain",
"uncategorized"
]
}
}

0 comments on commit 729855c

Please sign in to comment.