-
Notifications
You must be signed in to change notification settings - Fork 441
72 lines (67 loc) · 2.66 KB
/
coverage.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CodeCov Coverage Uploader
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build Synapse with Maven
continue-on-error: true
run: mvn clean install --file pom.xml
- name: Get synapse version
run: mvn help:evaluate -Dexpression=project.version -q -DforceStdout > ../SYNAPSE_VERSION_FILE
- name: Print synapse version
run: |
echo $(cat ../SYNAPSE_VERSION_FILE)
- name: Checkout Carbon Mediation
uses: actions/checkout@v1
with:
repository: wso2/carbon-mediation
ref: refs/heads/master
- name: Build carbon-mediation with Maven
continue-on-error: true
run: mvn clean install -Dsynapse.version=$(cat ../SYNAPSE_VERSION_FILE) -fae --file ../carbon-mediation/pom.xml
- name: Get carbon.mediation.version
run: mvn help:evaluate --file ../carbon-mediation/pom.xml -Dexpression=project.version -q -DforceStdout > ../CARBON_MEDIATION_VERSION_FILE
- name: Print carbon.mediation.version
run: |
echo $(cat ../CARBON_MEDIATION_VERSION_FILE)
- name: Checkout Micro Integrator
uses: actions/checkout@v1
with:
repository: wso2/micro-integrator
ref: refs/heads/master
- name: Build micro-integrator with Maven
continue-on-error: true
run: mvn clean install -Dsynapse.version=$(cat ../SYNAPSE_VERSION_FILE) -Dcarbon.mediation.version=$(cat ../CARBON_MEDIATION_VERSION_FILE) -fae --file ../micro-integrator/pom.xml
- name: Upload unit test coverage of synapse to Codecov
continue-on-error: true
uses: codecov/[email protected]
with:
flags: unit_tests,synapse_unit_tests
- name: Upload unit test coverage of carbon.mediation to Codecov
continue-on-error: true
uses: codecov/[email protected]
with:
flags: unit_tests,mediation_unit_tests
directory: ../carbon-mediation/
- name: Upload unit test coverage of micro.integrator to Codecov
continue-on-error: true
uses: codecov/[email protected]
with:
flags: unit_tests,mi_unit_tests
directory: ../micro-integrator/components/
- name: Upload integration test coverage of micro.integrator to Codecov
continue-on-error: true
uses: codecov/[email protected]
with:
flags: integration_tests
directory: ../micro-integrator/integration/