Skip to content

Commit

Permalink
Ci fixes (#14)
Browse files Browse the repository at this point in the history
* CI Fixes

* CI Fixes

* Codacy Fixes
  • Loading branch information
sheinbergon authored Jul 19, 2022
1 parent c9c5039 commit eabed16
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/multi-platform-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,17 @@ 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'
username = nexus.username
password = nexus.password
}
}
}
}

0 comments on commit eabed16

Please sign in to comment.