full-integration #512
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: full-integration | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 0 * * *' # daily at 0:30 UTC | |
jobs: | |
run-full-integration: | |
name: run full integration | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Prepare git | |
# turn off CRLF conversion (necessary on Windows) | |
run: git config --global core.autocrlf false | |
- name: Checkout git repo | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
cache: 'maven' | |
# Run unit and integration tests | |
- name: Run verify - release profile | |
# arguments containing dots (.) need to be quoted ('') so that PowerShell (Windows) does not parse them | |
run: mvn verify -P release --batch-mode --fail-at-end -D'maven.test.redirectTestOutputToFile' -D'matsim.preferLocalDtds=true' | |
env: | |
MAVEN_OPTS: -Xmx2g | |
verify-full-integration-successful: | |
# always() - to ensure this job is executed (regardless of the status of the previous job) | |
# run if push or pull_requests from fork | |
if: always() | |
needs: run-full-integration | |
runs-on: ubuntu-latest | |
steps: | |
- name: check if the whole job matrix is successful | |
if: needs.run-full-integration.result != 'success' | |
run: exit 1 # fail if "test" was not successful |