Changes CI #655
Workflow file for this run
This file contains hidden or 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 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: Build BaSyx | |
| run: mvn clean install ${MVN_ARGS_BUILD_BASYX} | |
| - name: Start environment | |
| run: docker compose --project-directory ./ci up -d --wait | |
| - name: Test BaSyx | |
| run: mvn test | |
| - name: Fail if no Surefire/Failsafe reports found | |
| run: | | |
| if ! find . -type f \( -path "*/target/surefire-reports/*.xml" -o -path "*/target/failsafe-reports/*.xml" \) | grep -q .; then | |
| echo "No Surefire or Failsafe test reports found. Failing CI."; | |
| exit 1; | |
| fi | |
| - name: Stop environment | |
| if: always() | |
| run: docker compose --project-directory ./ci down |