Skip to content

Commit 1a73c5d

Browse files
committed
ci: add automated dependency license checking
1 parent b4facad commit 1a73c5d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/end-to-end-tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ jobs:
2323
- name: Install everything
2424
run: npm install
2525

26+
- name: Automated license checking
27+
env:
28+
PROD_LICENSES: "MIT;BSD;0BSD;BSD-2-Clause;BSD-3-Clause;ISC;Apache-2.0"
29+
DEV_LICENSES: "Python-2.0;CC0-1.0;CC-BY-3.0;CC-BY-4.0;Apache 2.0;Unlicense;BlueOak-1.0.0"
30+
OK_BUT_NOT_AUTODETECTED: "@nxext/common@18.0.0;readalong-studio@0.0.0"
31+
run: |
32+
npx license-checker --summary --production --onlyAllow "$PROD_LICENSES" --excludePackages "$OK_BUT_NOT_AUTODETECTED"
33+
npx license-checker --summary --onlyAllow "$DEV_LICENSES;$PROD_LICENSES" --excludePackages "$OK_BUT_NOT_AUTODETECTED"
34+
2635
- name: Cypress run for web-component
2736
uses: cypress-io/github-action@v6
2837
with:

0 commit comments

Comments
 (0)