Skip to content

Commit

Permalink
Changes workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedJannik committed Aug 29, 2024
1 parent 9d67e20 commit 025adf8
Showing 1 changed file with 176 additions and 15 deletions.
191 changes: 176 additions & 15 deletions .github/workflows/docker_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:

env:
VERSION: 2.0.0-SNAPSHOT
MVN_ARGS_BUILD_BASYX_NO_TESTS: -DskipTests

jobs:
build-test-aas-repository:
Expand All @@ -40,7 +41,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build AAS Repository Docker Image
run: |
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.aasrepository.component"
Expand Down Expand Up @@ -94,7 +95,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build AAS Environment Docker Image
run: |
Expand Down Expand Up @@ -149,7 +150,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests -T1C
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build Concept Description Repository Docker Image
run: |
Expand Down Expand Up @@ -204,7 +205,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build AAS Discovery Docker Image
run: |
Expand Down Expand Up @@ -259,7 +260,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build AASX File Server Docker Image
run: |
Expand Down Expand Up @@ -314,7 +315,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build Submodel Repository Docker Image
run: |
Expand Down Expand Up @@ -369,7 +370,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build Submodel Service Docker Image
run: |
Expand Down Expand Up @@ -424,7 +425,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build AAS Registry Kafka Mem Docker Image
run: |
Expand Down Expand Up @@ -479,7 +480,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build AAS Registry Kafka MongoDB Docker Image
run: |
Expand Down Expand Up @@ -534,7 +535,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build AAS Registry Log Mem Docker Image
run: |
Expand Down Expand Up @@ -589,7 +590,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build AAS Registry Log MongoDB Docker Image
run: |
Expand Down Expand Up @@ -644,7 +645,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build Submodel Registry Kafka Mem Docker Image
run: |
Expand Down Expand Up @@ -699,7 +700,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build Submodel Registry Kafka MongoDB Docker Image
run: |
Expand Down Expand Up @@ -754,7 +755,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build Submodel Registry Log Mem Docker Image
run: |
Expand Down Expand Up @@ -809,7 +810,7 @@ jobs:
cache: maven
- name: Build BaSyx
run: |
mvn clean install -DskipTests
mvn clean install ${MVN_ARGS_BUILD_BASYX_NO_TESTS}
- name: Build Submodel Registry Log MongoDB Docker Image
run: |
Expand Down Expand Up @@ -849,3 +850,163 @@ jobs:
- name: Clean up
run: exit 0
test-basyx-aasenvironment:
runs-on: ubuntu-latest
name: Test BaSyx AAS Environment
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -f "basyx.aasenvironment/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-aasrepository:
runs-on: ubuntu-latest
name: Test BaSyx AAS Repository
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -f "basyx.aasrepository/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-aasservice:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -f "basyx.aasservice/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-submodelrepository:
runs-on: ubuntu-latest
name: Test BaSyx Submodel Repository
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -f "basyx.submodelrepository/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-submodelservice:
runs-on: ubuntu-latest
name: Test BaSyx Submodel Service
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -f "basyx.submodelservice/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-conceptdescriptionrepository:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -f "basyx.conceptdescriptionrepository/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-submodelregistry:
runs-on: ubuntu-latest
name: Test BaSyx Submodel Registry
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -f "basyx.submodelregistry/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-aasregisty:
runs-on: ubuntu-latest
name: Test BaSyx AAS Registry
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -f "basyx.aasregisty/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-aasdiscoveryservice:
runs-on: ubuntu-latest
name: Test BaSyx AAS Discovery Service
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -f "basyx.aasdiscoveryservice/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down

0 comments on commit 025adf8

Please sign in to comment.