weekly-code-coverage #115
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: weekly-code-coverage | |
on: | |
schedule: | |
- cron: '30 3 * * 0' # Sun 3:30 UTC | |
jobs: | |
code-coverage: | |
name: create and publish coverage report | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'zulu' | |
cache: 'maven' | |
# Run unit and integration tests with jacoco profile | |
- name: Create coverage report | |
run: mvn verify -P jacoco --batch-mode --also-make --projects matsim -Dmaven.test.redirectTestOutputToFile -Dmatsim.preferLocalDtds=true | |
- name: Push coverage to CodeCov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./matsim/target/site/jacoco/jacoco.xml | |
env: | |
MAVEN_OPTS: -Xmx2g |