try make tests run and pass #180
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: Java CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| module: | |
| - useCases/fabiland | |
| - useCases/austin | |
| - useCases/bangkok | |
| - useCases/berlinBrandenburg | |
| - useCases/capeTown | |
| - useCases/kagawa | |
| - useCases/manchester | |
| - useCases/maryland | |
| - useCases/munich | |
| - useCases/perth | |
| - siloCore | |
| - analysis | |
| - extensions | |
| - synthetic-population | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' # See 'Supported distributions' for available options | |
| java-version: '21' | |
| cache: 'maven' | |
| - name: Install HDF5 native dependencies (for hdf-java) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libhdf5-dev | |
| # - name: Build with Maven | |
| # run: mvn test --fail-at-end --batch-mode -Dmatsim.preferLocalDtds=true | |
| # the orriginal command | |
| - name: Build module (with dependencies) | |
| run: mvn install --batch-mode --also-make --projects ${{matrix.module}} -DskipTests -Dsource.skip | |
| - name: Test module | |
| run: mvn verify --batch-mode -Dmaven.test.redirectTestOutputToFile -Dmatsim.preferLocalDtds=true --fail-at-end -Dsource.skip | |
| working-directory: ${{matrix.module}} | |
| - name: Sanitize module name for artifact | |
| if: failure() | |
| id: sanitize | |
| run: echo "name=$(echo '${{ matrix.module }}' | tr '/' '-')" >> $GITHUB_OUTPUT | |
| - name: Upload test output on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-output-${{ steps.sanitize.outputs.name }} | |
| path: | | |
| ${{ matrix.module }}/test/output/ | |
| ${{ matrix.module }}/target/surefire-reports/ | |
| retention-days: 5 | |
| env: | |
| MAVEN_OPTS: -Xmx2g | |