-
Notifications
You must be signed in to change notification settings - Fork 39
81 lines (80 loc) · 2.37 KB
/
pr-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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: "Pull Request Build"
on:
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
java-version: [11]
build-root: [".", "examples/instrumentation-quickstart"]
include:
- build-root: .
name: root
name: Test (${{matrix.name || matrix.build-root}}, java-${{matrix.java-version}})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- id: setup-java
name: Setup Java ${{matrix.java-version}}
uses: actions/setup-java@v1
with:
java-version: ${{matrix.java-version}}
- uses: burrunan/[email protected]
with:
job-id: java-${{matrix.java-version}}
remote-build-cache-proxy-enabled: false
build-root-directory: ${{matrix.build-root}}
arguments: test
shadow:
strategy:
matrix:
java-version: [11]
name: Shadow Jar Build (Java ${{matrix.java-version}})
runs-on: ubuntu-latest
steps:
- id: checkout-repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- id: setup-java
name: Setup Java ${{matrix.java-version}}
uses: actions/setup-java@v1
with:
java-version: ${{matrix.java-version}}
- id: setup-gradle-cache
name: Run Gradle Build with ShadowJar
uses: burrunan/[email protected]
with:
job-id: gradle-shadow-java-${{matrix.java-version}}
remote-build-cache-proxy-enabled: false
build-root-directory: .
arguments: shadowJar
style:
name: Stylecheck (${{matrix.name || matrix.build-root}})
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [11]
build-root: [".", "examples/instrumentation-quickstart"]
include:
- build-root: .
name: root
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- id: setup-java
name: Setup Java ${{matrix.java-version}}
uses: actions/setup-java@v1
with:
java-version: ${{matrix.java-version}}
- uses: burrunan/[email protected]
with:
job-id: java-${{matrix.java-version}}
remote-build-cache-proxy-enabled: false
build-root-directory: ${{matrix.build-root}}
arguments: spotlessCheck