Issue #2175: Fixed slowCallDurationThreshold validation error message… #195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
validation: | |
name: "Gradle wrapper validation" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.4.0 | |
- uses: gradle/wrapper-validation-action@v1.0.5 | |
build: | |
name: "Build and publish" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.4.0 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Cache SonarCloud packages | |
uses: actions/cache@v3.3.1 | |
if: env.SONAR_TOKEN != null && env.SONAR_TOKEN != '' | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: Build | |
id: gradle | |
uses: eskatos/gradle-command-action@v2.3.3 | |
with: | |
arguments: check | |
wrapper-cache-enabled: true | |
dependencies-cache-enabled: true | |
configuration-cache-enabled: true | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action/composite@v2 | |
if: always() | |
with: | |
junit_files: '**/test-results/**/*.xml' | |
- name: Analyze with SonarCloud | |
continue-on-error: true | |
if: env.SONAR_TOKEN != null && env.SONAR_TOKEN != '' | |
uses: eskatos/gradle-command-action@v2.3.3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
arguments: sonarqube -Psonar.organization=resilience4j | |
dependencies-cache-enabled: true | |
configuration-cache-enabled: true | |
- name: Publish to Sonatype | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
uses: eskatos/gradle-command-action@v2.3.3 | |
env: | |
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USER }} | |
ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.SONATYPE_PASSWORD }} | |
with: | |
arguments: publishToSonatype | |
dependencies-cache-enabled: true | |
configuration-cache-enabled: true |