Skip to content

Commit 01db25f

Browse files
authored
Feature/sonar2 (#204)
Testing the idea to not execute SonarCloud in any PR because in PR, it is not working
1 parent 9880562 commit 01db25f

File tree

4 files changed

+3
-31
lines changed

4 files changed

+3
-31
lines changed

.github/workflows/build_gradle.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,3 @@ jobs:
3838
run: |
3939
curl -Ls https://sh.jbang.dev | bash -s - app setup
4040
~/.jbang/bin/jbang .github/VersionLibraryVerifier.java amadeus-java/
41-
42-
sonarbuild:
43-
name: sonarcloud Build
44-
runs-on: ubuntu-latest
45-
steps:
46-
- uses: actions/checkout@v2
47-
with:
48-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
49-
- name: Set up JDK 11
50-
uses: actions/setup-java@v1
51-
with:
52-
java-version: 11
53-
- name: Cache SonarCloud packages
54-
uses: actions/cache@v1
55-
with:
56-
path: ~/.sonar/cache
57-
key: ${{ runner.os }}-sonar
58-
restore-keys: ${{ runner.os }}-sonar
59-
- name: Cache Gradle packages
60-
uses: actions/cache@v1
61-
with:
62-
path: ~/.gradle/caches
63-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
64-
restore-keys: ${{ runner.os }}-gradle
65-
- name: Build and analyze
66-
env:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
68-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
69-
run: ./gradlew build sonarqube --info

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,3 +475,4 @@ This library is released under the [MIT License](LICENSE).
475475

476476
You can find us on [StackOverflow](https://stackoverflow.com/questions/tagged/amadeus) or join our developer community on
477477
[Discord](https://discord.gg/cVrFBqx).
478+

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ sonarqube {
8888
property "sonar.organization", "amadeus4dev"
8989
property "sonar.host.url", "https://sonarcloud.io"
9090
}
91-
}
91+
}

src/test/java/com/amadeus/HTTPClientThreadSafeIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void setup() {
5252
.setHost("localhost")
5353
.setPort(8080)
5454
.setSsl(false)
55-
.setLogLevel("debug")
55+
//.setLogLevel("debug")
5656
.build();
5757
}
5858

0 commit comments

Comments
 (0)