-
Notifications
You must be signed in to change notification settings - Fork 22
65 lines (54 loc) · 1.69 KB
/
maven.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
name: Build Maven Archetypes
on: push
jobs:
build-enterprise-java-archetypes:
runs-on: ubuntu-latest
name: Build and Test Java Enterprise Maven Archetypes
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: Build and Install the Maven archetypes
run: ./mvnw install -Dgpg.skip
- name: Verify Maven archetypes
run: |
bash --version
./verifyArchetypes.sh
build-basic-java-testing-archetype:
runs-on: ubuntu-latest
name: Build and Test Java Testing Maven Archetype
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven
- name: Build and Verify Archetype
working-directory: testing-toolkit-archetype
run: |
ARCHETYPE_VERSION=$(../mvnw -q \
-f "pom.xml" \
-Dexec.executable=echo \
-Dexec.args='${project.version}' \
--non-recursive \
exec:exec)
../mvnw install -Dgpg.skip
mkdir tmp
cd tmp
../../mvnw archetype:generate \
-DarchetypeGroupId=de.rieckpil.archetypes \
-DarchetypeArtifactId=testing-toolkit \
-DarchetypeVersion="$ARCHETYPE_VERSION" \
-DgroupId=org.mycompany \
-DartifactId=order-service \
-DinteractiveMode=false
cd order-service
./mvnw verify