File tree Expand file tree Collapse file tree 2 files changed +34
-16
lines changed Expand file tree Collapse file tree 2 files changed +34
-16
lines changed Original file line number Diff line number Diff line change 1+ # .github/actions/setup-and-build/action.yml
2+ name : ' Setup and Build'
3+ description : ' Sets up Java, Node.js, installs dependencies, and builds the project'
4+ inputs :
5+ node-version :
6+ description : ' Node.js version to setup'
7+ required : true
8+
9+ runs :
10+ using : ' composite'
11+ steps :
12+ - name : Setup Java
13+ uses : actions/setup-java@v4
14+ with :
15+ distribution : ' temurin'
16+ java-version : 17
17+ architecture : x64
18+
19+ - name : Setup Node.js
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : ${{ inputs.node-version }}
23+ cache : ' npm'
24+
25+ - name : Install Dependency
26+ run : npm ci
27+
28+ - name : Test generator
29+ run : cd generator; mvn package; cd ..
30+
31+ - name : Generate code
32+ run : python3 generate-code.py
Original file line number Diff line number Diff line change @@ -22,24 +22,10 @@ jobs:
2222 - uses : actions/checkout@v4
2323 with :
2424 submodules : true
25- - name : actions/setup-java@v3
26- uses : actions/setup-java@v4
27- with :
28- distribution : ' temurin'
29- java-version : 17
30- architecture : x64
31- - name : Setup Node.js
32- uses : actions/setup-node@v4
25+ - name : Setup and Build
26+ uses : ./.github/actions/setup-and-build
3327 with :
3428 node-version : ${{ matrix.node }}
35- cache : ' npm'
36- - name : Install Dependency
37- run : npm ci
38- - name : Test generator
39- run : cd generator; mvn package; cd ..
40- - name : Generate code
41- run : |
42- python3 generate-code.py
4329 - name : Test Project
4430 run : export NODE_OPTIONS=--max-old-space-size=6144; npm test
4531 - name : Test building apidocs
You can’t perform that action at this time.
0 commit comments