From 8f8d529ec5aef6d44906ebd20ad4e1919aa3b9cf Mon Sep 17 00:00:00 2001 From: Sean Mac Gillicuddy Date: Thu, 9 Jan 2020 14:25:00 +0000 Subject: [PATCH 1/2] #1693 Coverage Reports not uploading via Github Actions --- .github/workflows/coverage.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4cf8bc319..78d28415d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -34,5 +34,8 @@ jobs: - name: create unit coverage run: ./gradlew jacocoTestDebugUnitTestReport jacocoTestCustomExampleDebugUnitTestReport - - name: upload coverage - run: bash <(curl -s https://codecov.io/bash) + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true From bc23500373d935b7813f97d9c067544ddb830e05 Mon Sep 17 00:00:00 2001 From: Sean Mac Gillicuddy Date: Thu, 9 Jan 2020 14:29:19 +0000 Subject: [PATCH 2/2] fix indentation --- .github/workflows/coverage.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 78d28415d..d069f1618 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -35,7 +35,7 @@ jobs: run: ./gradlew jacocoTestDebugUnitTestReport jacocoTestCustomExampleDebugUnitTestReport - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: true + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true