forked from SAP/olingo-jpa-processor-v4
-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (35 loc) · 1.12 KB
/
produce-coveragereport-javax.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Produce/Upload coverage report for OData-JPA-Adapter (javax) to Codedov
on:
release:
types: [released]
push:
branches:
- main-javax
jobs:
code-coverage:
environment: production
runs-on: ubuntu-latest
name: Code coverage
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'
architecture: x64
cache: maven
- name: Create code coverage report
run: mvn clean verify -Duse-eclipselink -Ddisable.jetty=false -Dmaven.source.skip -Dmaven.javadoc.skip
- name: Archive code coverage results for download
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: code-coverage-report/target/jacoco-aggregate-ut/jacoco.xml
- name: Upload code coverage report
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: code-coverage-report/target/jacoco-aggregate-ut/jacoco.xml
# flags: unittests
fail_ci_if_error: true
verbose: false