-
Notifications
You must be signed in to change notification settings - Fork 12
51 lines (42 loc) · 1.67 KB
/
quickstart-tests.yaml
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
name: Quickstart Flow Tests
on:
push:
branches: [ master, v3.X, v2.X, v1.X ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
json-provider: [ "resteasy-jsonb", "resteasy-jackson" ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: 'maven'
- name: Compile and Install Extension
run: |
./mvnw install -Pquick -pl '!integration-test'
mkdir quickstart
- name: Generate Quickstart App
working-directory: ./quickstart
run: |
QUARKUS_VERSION=$(mvn -f ../pom.xml -q -Dexec.executable=echo -Dexec.args='${quarkus.version}' --non-recursive exec:exec)
echo "QUARKUS_VERSION = $QUARKUS_VERSION"
mvn io.quarkus:quarkus-maven-plugin:$QUARKUS_VERSION:create \
-Dextensions="resteasy,${{ matrix.json-provider }}" \
-DprojectGroupId=problem \
-DprojectArtifactId=quarkus-resteasy-problem-playground \
-DclassName="problem.HelloResource" \
-Dpath="/hello"
EXTENSION_VERSION=$(mvn -f ../pom.xml -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
echo "EXTENSION_VERSION = $EXTENSION_VERSION"
cd quarkus-resteasy-problem-playground
./mvnw quarkus:add-extension -Dextensions="com.tietoevry.quarkus:quarkus-resteasy-problem:$EXTENSION_VERSION"
- name: Run tests
working-directory: ./quickstart/quarkus-resteasy-problem-playground
run: |
./mvnw --no-transfer-progress test