forked from ls1intum/Artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.92 KB
/
analysis-of-endpoint-connections.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Analysis-of-Endpoint-Connections
on:
pull_request:
types:
- opened
- synchronize
paths:
- 'src/main/java/**'
- 'src/main/webapp/**'
jobs:
show-modified-files:
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@v2
with:
node-version: '20.8.0'
- name: Install npm packages
run: |
cd supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/
npm install
- name: Install and compile TypeScript
run: |
cd supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/
npm install typescript
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 $(cat modified_files.txt)
# Analyze the server sided endpoints
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
- name: Build analysis-of-endpoint-connections-server
run: |
./gradlew :supporting_scripts:analysis-of-endpoint-connections:build
./gradlew :supporting_scripts:analysis-of-endpoint-connections:shadowJar
- name: run analysis-of-endpoint-connections
run: |
java -jar supporting_scripts/analysis-of-endpoint-connections/build/libs/analysis-of-endpoint-connections-1.0-SNAPSHOT-all.jar $(cat modified_files.txt)