File tree Expand file tree Collapse file tree 3 files changed +47
-1
lines changed
src/test/java/io/javaoperatorsdk/operator/glue Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Sonar
2+
3+ env :
4+ MAVEN_ARGS : -V -ntp -e
5+
6+ concurrency :
7+ group : ${{ github.ref }}-${{ github.workflow }}
8+ cancel-in-progress : true
9+ on :
10+ push :
11+ paths-ignore :
12+ - ' docs/**'
13+ - ' adr/**'
14+ branches : [ main ]
15+ pull_request :
16+ paths-ignore :
17+ - ' docs/**'
18+ - ' adr/**'
19+ types : [ opened, synchronize, reopened ]
20+
21+ jobs :
22+ sonar :
23+ runs-on : ubuntu-latest
24+ if : ${{ ( github.event_name == 'push' ) || ( github.event_name == 'pull_request' ) }}
25+ steps :
26+ - uses : actions/checkout@v4
27+ - name : Set up Java and Maven
28+ uses : actions/setup-java@v4
29+ with :
30+ distribution : temurin
31+ java-version : 21
32+ cache : ' maven'
33+ - name : Cache SonarCloud packages
34+ uses : actions/cache@v4
35+ with :
36+ path : ~/.sonar/cache
37+ key : ${{ runner.os }}-sonar
38+ restore-keys : ${{ runner.os }}-sonar
39+ - name : Build and analyze
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
42+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
43+ run : mvn -B org.jacoco:jacoco-maven-plugin:prepare-agent clean install verify org.jacoco:jacoco-maven-plugin:report org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=java-operator-sdk_kubernetes-glue-operator
44+
Original file line number Diff line number Diff line change 1515 <maven .compiler.target>${java.version} </maven .compiler.target>
1616 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1717 <surefire-plugin .version>3.5.2</surefire-plugin .version>
18+ <sonar .organization>java-operator-sdk</sonar .organization>
19+ <sonar .host.url>https://sonarcloud.io</sonar .host.url>
1820 <fabric8-client .version>6.13.1</fabric8-client .version>
1921 <quarkus .version>3.8.3</quarkus .version>
2022 <graalvm .version>24.1.1</graalvm .version>
Original file line number Diff line number Diff line change 2424
2525public class TestUtils {
2626
27- public static final Duration GC_WAIT_TIMEOUT = Duration .ofSeconds (120 );
27+ public static final Duration GC_WAIT_TIMEOUT = Duration .ofSeconds (180 );
2828 public static final Duration INITIAL_RECONCILE_WAIT_TIMEOUT = Duration .ofMillis (150 );
2929
3030 public static final int CRD_READY_WAIT = 1000 ;
You can’t perform that action at this time.
0 commit comments