Development
: Add client sided endpoints parser
#3502
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
paths: | |
- 'src/main/java/**' | |
- 'src/main/webapp/**' | |
# Keep in sync with build.yml and test.yml and codeql-analysis.yml | |
env: | |
CI: true | |
node: 20 | |
java: 21 | |
jobs: | |
analysis-of-endpoint-connections: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get list of modified files | |
run: | | |
git diff --name-only origin/${{ github.event.pull_request.base.ref }} HEAD > modified_files.txt | |
# Analyze the client sided REST-API calls | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{ env.node }}' | |
- name: Install and compile TypeScript | |
run: | | |
cd supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/ | |
npm install | |
tsc -p tsconfig.analysisOfEndpointConnections.json | |
- name: Run analysis-of-endpoint-connections-client | |
run: | | |
node supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/AnalysisOfEndpointConnectionsClient.js > analysis_output.log 2>&1 | |
# - name: List directory contents | |
# run: ls -la supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/ | |
# | |
# - name: Upload analysis output log | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: analysis-output-log | |
# path: supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/analysis_output.log | |
# | |
- name: Upload JSON file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: rest-calls-json | |
path: supporting_scripts/analysis-of-endpoint-connections/restCalls.json | |
# Analyze the server sided endpoints | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '${{ env.java }}' | |
distribution: 'adopt' | |
- name: Run analysis-of-endpoint-connections | |
run: | | |
./gradlew :supporting_scripts:analysis-of-endpoint-connections:run --args="$(cat modified_files.txt)" |