Build and Test AasEnv #1
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
name: Build and Test AasEnv | |
on: workflow_dispatch | |
env: | |
MVN_ARGS_BUILD_BASYX: -DskipTests | |
jobs: | |
test-basyx-common: | |
runs-on: ubuntu-latest | |
name: BaSyx Core Test | |
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: Build BaSyx | |
run: mvn clean install ${MVN_ARGS_BUILD_BASYX} | |
- name: Test AAS Environment | |
run: mvn test -f "basyx.common/pom.xml" | |
- name: Stop environment | |
if: always() | |
run: docker compose --project-directory ./ci down | |
test-basyx-aasenvironment: | |
runs-on: ubuntu-latest | |
name: AAS Environment Test | |
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: Build BaSyx | |
run: mvn clean install ${MVN_ARGS_BUILD_BASYX} | |
- name: Test AAS Environment | |
run: mvn test -f "basyx.aasenvironment/pom.xml" | |
- name: Stop environment | |
if: always() | |
run: docker compose --project-directory ./ci down |