diff --git a/.github/workflows/multi-platform-ci.yml b/.github/workflows/multi-platform-ci.yml index 2c1dac4..09d5006 100644 --- a/.github/workflows/multi-platform-ci.yml +++ b/.github/workflows/multi-platform-ci.yml @@ -28,6 +28,13 @@ jobs: - name: Run tests via gradle run: ./gradlew clean build test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + env_vars: OS + fail_ci_if_error: true + verbose: true + # Publish to the staging repository only once, from the Linux Runner - name: Publish to Staging repository if: runner.os == 'Linux' @@ -36,9 +43,3 @@ jobs: NEXUS_TARGET: SNAPSHOT NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - env_vars: OS - fail_ci_if_error: true diff --git a/README.md b/README.md index b41b10f..92678ea 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Needle [![Codecov](https://img.shields.io/codecov/c/github/sheinbergon/needle?logo=codecov&style=for-the-badge)](https://codecov.io/gh/sheinbergon/needle) -[![Codacy grade](https://img.shields.io/codacy/grade/9714c34bb5464296afdc7fe4de8f745a?logo=codacy&style=for-the-badge)](https://app.codacy.com/manual/sheinbergon/needle) +[![Codacy grade](https://img.shields.io/codacy/grade/b038c1739cec4d439736125a3e376139?logo=codacy&style=for-the-badge)](https://app.codacy.com/manual/sheinbergon/needle) [![GitHub](https://img.shields.io/github/license/sheinbergon/needle?color=pink&logo=apache&style=for-the-badge)](https://github.com/sheinbergon/needle/blob/main/LICENSE) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/sheinbergon/needle/multi-platform-ci?logo=github&style=for-the-badge)](https://github.com/sheinbergon/needle/actions?query=workflow%3Amulti-platform-ci) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/sheinbergon/needle?color=%2340E0D0&logo=github&style=for-the-badge)](https://github.com/sheinbergon/needle/releases/latest) diff --git a/build.gradle b/build.gradle index f70bfab..490a472 100644 --- a/build.gradle +++ b/build.gradle @@ -135,13 +135,12 @@ wrapper { gradleVersion = "7.4.2" } - nexusPublishing { transitionCheckOptions { maxRetries.set(100) delayBetween.set(Duration.ofSeconds(5)) } - useStaging = "${nexus.target}".equals('SNAPSHOT') + useStaging = (provider { "${nexus.target}".toString() == "RELEASE" }) repositories { sonatype { stagingProfileId = '8fd6a6ae6b815' @@ -149,4 +148,4 @@ nexusPublishing { password = nexus.password } } -} +} \ No newline at end of file