-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci : Run E2E tests against multiple versions of Docker
+ Use `crazy-max/ghaction-setup-docker` GitHub action to run E2E tests tied to a specific version of Docker + Add a minimal E2E test for windows that would just verify that DMP is able to build image with docker on windows Signed-off-by: Rohan Kumar <[email protected]>
- Loading branch information
1 parent
e8207b9
commit af54e7b
Showing
4 changed files
with
120 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: E2E Tests | ||
|
||
env: | ||
MAVEN_ARGS: -B -C -V -ntp -Dhttp.keepAlive=false -e | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
schedule: | ||
- cron: '0 1 * * *' # Every day at 1 | ||
|
||
jobs: | ||
windows-build: | ||
name: Windows | ||
runs-on: windows-latest | ||
steps: | ||
- name: Get Windows Version > Used to retrieve specific Docker Image | ||
shell: cmd | ||
run: | | ||
ver | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
- name: Install DMP | ||
run: mvn ${MAVEN_ARGS} clean install -DskipTests | ||
- name: Run Integration tests | ||
run: | | ||
cd it/windows-build | ||
mvn clean install -Pwindows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>io.fabric8.dmp.itests</groupId> | ||
<artifactId>dmp-it-parent</artifactId> | ||
<version>0.44-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<groupId>fabric8io</groupId> | ||
<artifactId>dmp-it-windows-build</artifactId> | ||
<version>0.44-SNAPSHOT</version> | ||
|
||
<profiles> | ||
<profile> | ||
<id>windows</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>io.fabric8</groupId> | ||
<artifactId>docker-maven-plugin</artifactId> | ||
<configuration> | ||
<images> | ||
<image> | ||
<name>%g/%a:${project.version}</name> | ||
<build> | ||
<from>mcr.microsoft.com/windows/nanoserver:ltsc2022</from> | ||
<assembly> | ||
<descriptorRef>artifact</descriptorRef> | ||
</assembly> | ||
</build> | ||
</image> | ||
</images> | ||
</configuration> | ||
|
||
<executions> | ||
<execution> | ||
<id>build</id> | ||
<goals> | ||
<goal>build</goal> | ||
</goals> | ||
<phase>pre-integration-test</phase> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |