-
Notifications
You must be signed in to change notification settings - Fork 5
102 lines (81 loc) · 2.88 KB
/
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: LRA coordinator
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [17, 21]
name: Build with JDK ${{ matrix.java }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: maven
check-latest: true
- name: Build and Test with Java ${{ matrix.java }}
run: mvn -B verify
integration-verification-jar:
runs-on: ubuntu-latest
name: Integration verification with Quarkus (JAR)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 17
distribution: temurin
- name: Build with Maven
run: mvn -B install
- name: Checkout Quarkus
uses: actions/checkout@v2
with:
repository: quarkusio/quarkus
path: ./quarkus
- name: Build Quarkus
working-directory: ./quarkus
run: |
./mvnw -Dquickly
- name: Quarkus integration (JAR)
working-directory: ./quarkus
run: |
java -jar ../target/quarkus-app/quarkus-run.jar &
./mvnw clean verify -pl tcks/microprofile-lra -Dtcks -Dlra.coordinator.url=http://localhost:8080/lra-coordinator
kill %1
integration-verification-image:
runs-on: ubuntu-latest
name: Integration verification with Quarkus (Docker image)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 17
distribution: temurin
- name: Build with Maven (including image)
run: mvn -B install -Dquarkus.container-image.build=true
- name: Checkout Quarkus
uses: actions/checkout@v2
with:
repository: quarkusio/quarkus
path: ./quarkus
- name: Build Quarkus
working-directory: ./quarkus
run: |
./mvnw -Dquickly
- name: Quarkus integration (Docker image)
working-directory: ./quarkus
run: |
# run the built image
docker run -d --rm --name lra-coordinator --network host quay.io/jbosstm/lra-coordinator:1.0.0-SNAPSHOT
# run the TCK in Quarkus with the produced image, project is already built from previous step
./mvnw clean verify -pl tcks/microprofile-lra -Dtcks -Dlra.coordinator.url=http://localhost:8080/lra-coordinator
echo "Saving lra-coordinator image logs to $PWD/lra-coordinator.log"
docker logs lra-coordinator >"./lra-coordinator.log" 2>&1
docker kill lra-coordinator
echo "============== LRA coordinator image output =============="
cat ./lra-coordinator.log
echo "============== LRA coordinator image output end =============="