Skip to content

Commit

Permalink
Add license check for theia folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-koehler committed Dec 20, 2024
1 parent a569e94 commit f0f235e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/eclipse-npm-license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
distribution: "adopt"
java-version: ${{ matrix.java }}

- name: Run dash-licenses
- name: Run node dash-licenses
shell: bash
run: |
sudo apt-get install libsecret-1-dev
Expand All @@ -51,3 +51,13 @@ jobs:
npm run license:check
env:
DASH_TOKEN: ${{ secrets.DASH_LICENSES_PAT }}

- name: Run theia dash-licenses
shell: bash
run: |
sudo apt-get install libsecret-1-dev
cd theia
yarn --frozen-lockfile --ignore-scripts
yarn license:check
env:
DASH_TOKEN: ${{ secrets.DASH_LICENSES_PAT }}
2 changes: 1 addition & 1 deletion theia/configs/license-check-config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"project": "ecd.theia",
"review": true,
"inputFile": "package-lock.json",
"inputFile": "yarn.lock",
"batch": 50,
"timeout": 200,
"summary": "license-check-summary.txt",
Expand Down
4 changes: 2 additions & 2 deletions theia/configs/license-check-exclusions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"npm/npmjs/-/landing-page/0.1.0": "Theia Cloud Internal Package",
"npm/npmjs/-/testing-page/0.1.0": "Theia Cloud Internal Package"
"npm/npmjs/-/browser-app/0.0.0": "Theia Cloud Internal Package",
"npm/npmjs/-/config-store-example/0.0.0": "Theia Cloud Internal Package"
}
3 changes: 2 additions & 1 deletion theia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"example-app": "yarn --cwd examples/browser-app",
"lint": "lerna run lint",
"start": "yarn example-app start",
"watch": "lerna run watch"
"watch": "lerna run watch",
"license:check": "npx dash-licenses-wrapper --configFile=./configs/license-check-config.json"
},
"devDependencies": {
"@eclipse-dash/nodejs-wrapper": "^0.0.1",
Expand Down

0 comments on commit f0f235e

Please sign in to comment.