Skip to content

weekly-code-coverage #133

weekly-code-coverage

weekly-code-coverage #133

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