File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : 3PP License Check
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ workflow_dispatch :
8+ pull_request :
9+ branches :
10+ - master
11+ schedule :
12+ - cron : ' 0 4 * * *' # Runs every day at 4am: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule
13+
14+ jobs :
15+
16+ License-check :
17+ name : 3PP License Check using dash-licenses
18+
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ os : [ubuntu-latest]
23+ node : ['18.x']
24+ java : ['11']
25+
26+ runs-on : ${{ matrix.os }}
27+ timeout-minutes : 20
28+
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v3
32+ with :
33+ fetch-depth : 2
34+
35+ - name : Use Node.js ${{ matrix.node }}
36+ uses : actions/setup-node@v3
37+ with :
38+ node-version : ${{ matrix.node }}
39+ registry-url : ' https://registry.npmjs.org'
40+
41+ - name : Use Java ${{ matrix.java }}
42+ uses : actions/setup-java@v3
43+ with :
44+ distribution : ' adopt'
45+ java-version : ${{ matrix.java }}
46+
47+ - name : Run dash-licenses
48+ if : matrix.tests != 'skip'
49+ shell : bash
50+ run : |
51+ yarn license:check"
52+ env :
53+ DASH_TOKEN : ${{ secrets.DASH_LICENSES_PAT }}
Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ node_modules/
1717theia-extensions /viewer-prototype /lib /
1818trace-compass-server
1919trace-compass-server.tar.gz
20+ license-check-summary.txt *
Original file line number Diff line number Diff line change 1+ {
2+ "project" : " ecd.cdt-cloud" ,
3+ "review" : false ,
4+ "inputFile" : " yarn.lock" ,
5+ "batch" : 50 ,
6+ "timeout" : 200 ,
7+ "summary" : " license-check-summary.txt"
8+ }
Original file line number Diff line number Diff line change 2424 "format:write" : " lerna run format:write" ,
2525 "format:check" : " lerna run format:check" ,
2626 "browser" : " yarn -s --cwd examples/browser" ,
27- "electron" : " yarn -s --cwd examples/electron"
27+ "electron" : " yarn -s --cwd examples/electron" ,
28+ "license:check" : " npx dash-licenses-wrapper --configFile=./configs/license-check-config.json"
2829 },
2930 "keywords" : [
3031 " theia-extension" ,
You can’t perform that action at this time.
0 commit comments