-
Notifications
You must be signed in to change notification settings - Fork 70
69 lines (66 loc) · 2.28 KB
/
configurationserver_test.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
62
63
64
65
66
67
68
69
name: Configuration Server Tests
on:
push:
branches:
- master
pull_request:
paths:
- '.github/workflows/configurationserver_test.yml'
- 'components/inspectit-ocelot-configurationserver/**'
- 'gradle.properties'
- '!components/inspectit-ocelot-configurationserver/README.md'
workflow_call:
jobs:
test:
name: Assemble & Test
runs-on: ubuntu-latest
env:
working-directory: ./components/inspectit-ocelot-configurationserver
container: eclipse-temurin:17
steps:
- uses: actions/checkout@v2
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: assemble
run: ../../gradlew assemble
working-directory: ${{env.working-directory}}
- name: Build jar with frontend
working-directory: ${{env.working-directory}}
run: ../../gradlew bootJarWithFrontend
- name: test
run: ../../gradlew test
working-directory: ${{env.working-directory}}
dependency-scan:
name: Dependency Scan
runs-on: ubuntu-latest
container: eclipse-temurin:17
steps:
- uses: actions/checkout@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: build
run: ./gradlew :inspectit-ocelot-configurationserver:bootJarWithFrontend
- name: Run DependencyCheck plugin
uses: dependency-check/Dependency-Check_Action@main
id: depcheck
continue-on-error: true
with:
project: inspectIT/inspectit-ocelot-configuration-server
path: "$(find ./components/ -type f -name 'inspectit-ocelot-config*.jar' | tr '\n' ' ')"
format: 'HTML'
args: >
--disableAssembly
--disableNodeAudit
--nvdApiKey ${{ secrets.NVD_API_KEY }}
--nvdApiDelay 10000
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: dependency-check-report-ocelot-configurationserver
path: ${{ github.workspace }}/reports
# if DependencyCheck failed, the job should also fail, but only after the results were uploaded
- name: Validate DependencyCheck outcome
if: ${{ steps.depcheck.outcome == 'failure' }}
run: |
echo "DependencyCheck failed"
exit 1