diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a1f86e..58e1e69 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,11 +22,12 @@ jobs: - name: Build with Gradle run: ./gradlew clean build - name: Upload coverage report to CodeCov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 with: files: build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml fail_ci_if_error: true verbose: true + token: ${{ secrets.CODECOV_TOKEN }} - name: Upload reports and test results to GitHub uses: actions/upload-artifact@v2 with: diff --git a/README.md b/README.md index ffdb093..9ace0da 100644 --- a/README.md +++ b/README.md @@ -303,8 +303,8 @@ style=flat [gh_action_build]:https://github.com/Nike-Inc/backstopper/actions/workflows/build.yml [gh_action_build_img]:https://github.com/Nike-Inc/backstopper/actions/workflows/build.yml/badge.svg -[codecov]:https://codecov.io/github/Nike-Inc/backstopper?branch=main -[codecov_img]:https://img.shields.io/codecov/c/github/Nike-Inc/backstopper/main.svg +[codecov]:https://codecov.io/github/Nike-Inc/backstopper +[codecov_img]:https://codecov.io/github/Nike-Inc/backstopper/branch/main/graph/badge.svg?token=zLHgFMsJpj [license]:LICENSE.txt [license img]:https://img.shields.io/badge/License-Apache%202-blue.svg