Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increases CI Speed #406

Merged
merged 57 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
3bcfa6b
Changes workflow
FriedJannik Aug 29, 2024
abbaf7f
Changes workflow
FriedJannik Aug 29, 2024
89795da
Changes workflow
FriedJannik Aug 29, 2024
4c7e2cb
Changes workflow
FriedJannik Aug 29, 2024
9393b6e
Changes workflow
FriedJannik Aug 29, 2024
3eabfa6
Changes workflow
FriedJannik Aug 29, 2024
5bca25a
Changes workflow
FriedJannik Aug 29, 2024
ba9bf8b
Changes workflow
FriedJannik Aug 29, 2024
ae44b69
Changes workflow
FriedJannik Aug 29, 2024
506c8a2
Changes workflow
FriedJannik Aug 29, 2024
4e84b28
Changes workflow
FriedJannik Aug 29, 2024
a010b66
Changes workflow
FriedJannik Aug 29, 2024
ae3da74
Changes workflow
FriedJannik Aug 29, 2024
2bf60c8
Changes workflow
FriedJannik Aug 29, 2024
d9ba631
Changes workflow
FriedJannik Aug 29, 2024
20a1a65
Changes workflow
FriedJannik Aug 29, 2024
2f2e1c9
Changes workflow
FriedJannik Aug 29, 2024
e9b58c2
Changes workflow
FriedJannik Aug 29, 2024
583e285
Changes workflow
FriedJannik Aug 29, 2024
5b32de4
Changes workflow
FriedJannik Aug 29, 2024
c944cae
Changes workflow
FriedJannik Aug 29, 2024
c845d7b
Changes workflow
FriedJannik Aug 29, 2024
aeed662
Changes workflow
FriedJannik Aug 29, 2024
a462a49
Changes workflow
FriedJannik Aug 29, 2024
d782f7d
Changes workflow
FriedJannik Aug 29, 2024
16f746e
Changes workflow
FriedJannik Aug 29, 2024
53d54a2
Changes workflow
FriedJannik Aug 29, 2024
8886c95
Changes workflow
FriedJannik Aug 29, 2024
b790238
Changes workflow
FriedJannik Aug 29, 2024
c0a368f
Changes workflow
FriedJannik Aug 29, 2024
fde2c64
Changes workflow
FriedJannik Aug 29, 2024
4173dce
Changes workflow
FriedJannik Aug 29, 2024
9d67e20
Changes workflow
FriedJannik Aug 29, 2024
025adf8
Changes workflow
FriedJannik Aug 29, 2024
cb5e9f9
Changes workflow
FriedJannik Aug 29, 2024
bcffe09
Changes workflow
FriedJannik Aug 29, 2024
2750bff
Changes workflow
FriedJannik Aug 29, 2024
751b7b5
Changes Dirties Context
FriedJannik Aug 29, 2024
839a426
Changes workflow
FriedJannik Aug 29, 2024
7352350
Changes POM
FriedJannik Aug 30, 2024
74aec4a
Refactors Workflow
FriedJannik Aug 30, 2024
9bf3393
Changes Workflow
FriedJannik Aug 30, 2024
8256814
Changes Workflow
FriedJannik Aug 30, 2024
0566431
Changes Workflow
FriedJannik Aug 30, 2024
3a420d9
Changes Workflow
FriedJannik Aug 30, 2024
72a0de9
Adds missing file & Changes Workflow
FriedJannik Aug 30, 2024
a894fdb
Fixes bug
FriedJannik Aug 30, 2024
d20deff
Renames Steps
FriedJannik Aug 30, 2024
afac0e8
Fixes bug
FriedJannik Aug 30, 2024
3fa8559
Fixes bug
FriedJannik Aug 30, 2024
9fc131f
Adds Healthcheck to Submodel Service
FriedJannik Aug 30, 2024
1d0c700
Changes Healthcheck of Submodel Service
FriedJannik Aug 30, 2024
7b5dc67
Changes Step Names to be more readable
FriedJannik Aug 30, 2024
de555fa
Adds missing Test
FriedJannik Sep 2, 2024
8f8f584
Adds AASX File Server Tests
FriedJannik Sep 2, 2024
3664915
Reverts Cosmetics
FriedJannik Sep 2, 2024
c37f2b1
Reverts docker-compose.yml
FriedJannik Sep 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
245 changes: 245 additions & 0 deletions .github/workflows/basyx_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
name: Build and Test BaSyx

on:
pull_request:
branches: [ main ]
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.github/CODE_OF_CONDUCT.md'
- '.github/CODING_CONVENTIONS.md'
- '.github/CONTRIBUTING.md'
- '.github/dependabot.yml'
- '.github/pull_request_template.md'
- '.github/SECURITY.md'
- 'docs/**'
- 'examples/**'
- 'README.md'
- '.gitattributes'
- '.gitignore'
- 'LICENSE'
- 'NOTICE'

env:
MVN_ARGS_BUILD_BASYX: -DskipTests -T1C

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-aasxfileserver:
runs-on: ubuntu-latest
name: AASX FileServer 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.aasxfileserver/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
test-basyx-aasrepository:
runs-on: ubuntu-latest
name: AAS Repository 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 Repository
run: mvn test -f "basyx.aasrepository/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-aasservice:
runs-on: ubuntu-latest
name: AAS Service 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 Service
run: mvn test -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: Submodel Repository 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 Submodel Repository
run: mvn test -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: Submodel Service 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 Submodel Service
run: mvn test -f "basyx.submodelservice/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-conceptdescriptionrepository:
runs-on: ubuntu-latest
name: Concept Description Repository 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 Concept Description Repository
run: mvn test -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: Submodel Registry 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 Submodel Registry
run: mvn test -f "basyx.submodelregistry/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-aasregistry:
runs-on: ubuntu-latest
name: AAS Registry 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 Registry
run: mvn test -f "basyx.aasregistry/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
test-basyx-aasdiscoveryservice:
runs-on: ubuntu-latest
name: AAS Discovery Service 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 Discovery Service
run: mvn test -f "basyx.aasdiscoveryservice/pom.xml"
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
Loading