-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (53 loc) · 1.7 KB
/
ci-build.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
name: Build main and pull requests
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: GIT Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: temurin
# using wrapper version (supposed to be 7.5.1)
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
- name: Gradle build
uses: gradle/gradle-build-action@v2
with:
arguments: clean build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: digma-otel-agent-extension
path: ./agent-extension/build/libs/digma-otel-agent-extension*.jar
retention-days: 5
- name: Upload agent-extension tests report
uses: actions/upload-artifact@v3
with:
name: agent-extension-tests-report
path: ./agent-extension/build/reports/tests/
retention-days: 5
- name: Upload methods instrumentation tests report
uses: actions/upload-artifact@v3
with:
name: methods-instrumentation-tests-report
path: ./testing/methods/build/reports/tests/
retention-days: 5
- name: Upload java 7 instrumentation tests report
uses: actions/upload-artifact@v3
with:
name: java7-instrumentation-tests-report
path: ./testing/java7/build/reports/tests/
retention-days: 5