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 (#689)
  • Loading branch information
nickevansuk authored Jan 31, 2025
1 parent d39f9ad commit 3f7c12f
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/quick-test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Code Tests

on:
# This does not run on push to master, as tests will instead be run there as
# part of the test-and-publish workflow.
push:
branches: [ master ]
pull_request:
branches: [ master ]

Expand All @@ -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 @@ -57,5 +58,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 @@ -76,5 +76,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 @@ -78,5 +78,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 3f7c12f

Please sign in to comment.