Skip to content

Commit

Permalink
Adapts CI
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedJannik committed Aug 5, 2024
1 parent 1dd3c0e commit 9e5282f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/maven_run_test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
Expand All @@ -19,6 +22,7 @@ on:
- 'LICENSE'
- 'NOTICE'


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -30,6 +34,12 @@ jobs:
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 -Ddocker.namespace=test
- name: Stop environment
run: docker compose --project-directory ./ci down
- name: Build and remove Docker images
run: |
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.submodelservice.example"
Expand Down Expand Up @@ -60,5 +70,3 @@ jobs:
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.submodelregistry-service-release-log-mem"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.submodelregistry-service-release-log-mongodb"
docker rmi -f $(docker images -aq)

0 comments on commit 9e5282f

Please sign in to comment.