Merge pull request #1727 from arunans23/fixdm #309
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: 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 Carbon Mediation with Maven | |
continue-on-error: true | |
run: mvn clean install --file pom.xml | |
- name: Get carbon-mediation version | |
run: mvn help:evaluate -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 -Dcarbon.mediation.version=$(cat ../CARBON_MEDIATION_VERSION_FILE) -fae --file ../micro-integrator/pom.xml | |
- name: Upload unit test coverage of carbon.mediation to Codecov | |
continue-on-error: true | |
uses: codecov/codecov-action@v1.2.1 | |
with: | |
flags: mediation_unit_tests,unit_tests | |
- name: Upload unit test coverage of micro.integrator to Codecov | |
continue-on-error: true | |
uses: codecov/codecov-action@v1.2.1 | |
with: | |
flags: mi_unit_tests,unit_tests | |
directory: ../micro-integrator/components/ | |
- name: Upload integration test coverage of micro.integrator to Codecov | |
continue-on-error: true | |
uses: codecov/codecov-action@v1.2.1 | |
with: | |
flags: integration_tests | |
directory: ../micro-integrator/integration/ |