File tree Expand file tree Collapse file tree 5 files changed +144
-7
lines changed Expand file tree Collapse file tree 5 files changed +144
-7
lines changed Original file line number Diff line number Diff line change @@ -18,23 +18,48 @@ concurrency:
18
18
cancel-in-progress : true
19
19
20
20
jobs :
21
+ buildWithoutTests :
22
+ name : BuildWithoutTests
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v4
27
+ - name : Cache .m2 registry
28
+ uses : actions/cache@v4
29
+ with :
30
+ path : ~/.m2/repository
31
+ key : cache-e2e-${{ github.sha }}-${{ github.run_id }}
32
+ - name : Setup Java
33
+ uses : actions/setup-java@v1
34
+ with :
35
+ java-version : ' 11'
36
+ - name : Install DMP
37
+ run : mvn ${MAVEN_ARGS} clean install -DskipTests -Djacoco.skip=true
38
+
21
39
build :
22
- name : Linux Java ${{ matrix.java }} Maven
40
+ name : Docker ${{ matrix.docker }} on Linux
23
41
runs-on : ubuntu-latest
42
+ needs : buildWithoutTests
24
43
strategy :
44
+ fail-fast : false
25
45
matrix :
26
- java : [11 ]
46
+ docker : [v25.0.2, v24.0.9, v23.0.6 ]
27
47
steps :
28
48
- name : Checkout
29
49
uses : actions/checkout@v2
30
50
- name : Setup Java
31
51
uses : actions/setup-java@v1
32
52
with :
33
- java-version : ${{ matrix.java }}
34
- - name : Set up Docker Buildx
35
- uses : docker/setup-buildx-action@v2
36
- - name : Install Docker Maven Plugin
37
- run : mvn ${MAVEN_ARGS} clean install -DskipTests -Djacoco.skip=true
53
+ java-version : ' 11'
54
+ - name : Cache .m2 registry
55
+ uses : actions/cache@v4
56
+ with :
57
+ path : ~/.m2/repository
58
+ key : cache-e2e-${{ github.sha }}-${{ github.run_id }}
59
+ - name : Set up Docker
60
+ uses : crazy-max/ghaction-setup-docker@v2
61
+ with :
62
+ version : ${{ matrix.docker }}
38
63
- name : Run Integration tests
39
64
run : |
40
65
cd it/
Original file line number Diff line number Diff line change
1
+ name : E2E Tests
2
+
3
+ env :
4
+ MAVEN_ARGS : -B -C -V -ntp -Dhttp.keepAlive=false -e
5
+
6
+ on :
7
+ workflow_dispatch :
8
+ push :
9
+ branches :
10
+ - master
11
+ pull_request :
12
+ schedule :
13
+ - cron : ' 0 1 * * *' # Every day at 1
14
+
15
+ jobs :
16
+ windows-build :
17
+ name : Windows
18
+ runs-on : windows-latest
19
+ steps :
20
+ - name : Get Windows Version > Used to retrieve specific Docker Image
21
+ shell : cmd
22
+ run : |
23
+ ver
24
+ - name : Checkout
25
+ uses : actions/checkout@v2
26
+ - name : Setup Java
27
+ uses : actions/setup-java@v1
28
+ with :
29
+ java-version : ' 11'
30
+ - name : Install DMP
31
+ run : mvn ${MAVEN_ARGS} clean install -DskipTests
32
+ - name : Run Integration tests
33
+ run : |
34
+ cd it/windows-build
35
+ mvn clean install -Pwindows
Original file line number Diff line number Diff line change
1
+ name : Mac OS Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+
9
+ jobs :
10
+ build :
11
+ name : Java ${{ matrix.java }} Maven Wrapper
12
+ runs-on : macos-13
13
+ strategy :
14
+ matrix :
15
+ java : [11]
16
+ steps :
17
+ - name : Checkout
18
+ uses : actions/checkout@v2
19
+ - name : Setup Java
20
+ uses : actions/setup-java@v1
21
+ with :
22
+ java-version : ${{ matrix.java }}
23
+ - name : Build Project
24
+ run : ./mvnw -B -C -V -ntp clean install
Original file line number Diff line number Diff line change 44
44
<module >spring-boot-with-jib</module >
45
45
<module >volume</module >
46
46
<module >zero-config</module >
47
+ <module >windows-build</module >
47
48
</modules >
48
49
</project >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project >
3
+ <modelVersion >4.0.0</modelVersion >
4
+
5
+ <parent >
6
+ <groupId >io.fabric8.dmp.itests</groupId >
7
+ <artifactId >dmp-it-parent</artifactId >
8
+ <version >0.44-SNAPSHOT</version >
9
+ <relativePath >../pom.xml</relativePath >
10
+ </parent >
11
+
12
+ <groupId >fabric8io</groupId >
13
+ <artifactId >dmp-it-windows-build</artifactId >
14
+ <version >0.44-SNAPSHOT</version >
15
+
16
+ <profiles >
17
+ <profile >
18
+ <id >windows</id >
19
+ <build >
20
+ <plugins >
21
+ <plugin >
22
+ <groupId >io.fabric8</groupId >
23
+ <artifactId >docker-maven-plugin</artifactId >
24
+ <configuration >
25
+ <images >
26
+ <image >
27
+ <name >%g/%a:${project.version} </name >
28
+ <build >
29
+ <from >mcr.microsoft.com/windows/nanoserver:ltsc2022</from >
30
+ <assembly >
31
+ <descriptorRef >artifact</descriptorRef >
32
+ </assembly >
33
+ </build >
34
+ </image >
35
+ </images >
36
+ </configuration >
37
+
38
+ <executions >
39
+ <execution >
40
+ <id >build</id >
41
+ <goals >
42
+ <goal >build</goal >
43
+ </goals >
44
+ <phase >pre-integration-test</phase >
45
+ </execution >
46
+ </executions >
47
+ </plugin >
48
+ </plugins >
49
+ </build >
50
+ </profile >
51
+ </profiles >
52
+ </project >
You can’t perform that action at this time.
0 commit comments