27 lines
440 B
YAML
27 lines
440 B
YAML
image: eclipse-temurin:21-jdk
|
|
|
|
variables:
|
|
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
|
|
|
|
stages:
|
|
- test
|
|
|
|
cache:
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- .m2/repository
|
|
|
|
test:
|
|
stage: test
|
|
before_script:
|
|
- chmod +x mvnw
|
|
script:
|
|
- ./mvnw --batch-mode clean verify
|
|
artifacts:
|
|
when: always
|
|
paths:
|
|
- target/site/jacoco/
|
|
reports:
|
|
junit:
|
|
- target/surefire-reports/TEST-*.xml
|