Adding codecov support. (#13)

* Adding code codecov support.

* Adding status badges for codecov and CI.

* Fixes to codecov in CI.

* Checking build directory.

* Syntax error.

* Fixing xml path.

* Removing token.
This commit is contained in:
Claudius Tewari
2020-07-02 21:45:42 -07:00
committed by GitHub
parent 2e7cdf008b
commit 09eea8bb53
5 changed files with 32 additions and 3 deletions

View File

@@ -65,10 +65,21 @@ jobs:
with:
java-version: 11
# Run Gradle tests.
# Run Gradle build.
- run: |
chmod +x gradlew
./gradlew test
./gradlew build
# Run Gradle tests.
- run: ./gradlew test
# Generate Coverage Report.
- run: ./gradlew jacocoTestReport
# Publish Coverage Report.
- uses: codecov/codecov-action@v1
with:
file: ./photon-server/build/reports/jacoco/test/jacocoTestReport.xml
build-package:
needs: [build-client, build-server]