Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanakushnir committed Feb 2, 2024
1 parent 1fca3d3 commit cce24bc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: SonarCloud
on:
push:
branches:
- main
- branch-*
- sl-*
pull_request:
types: [opened, synchronize, reopened]
jobs:
Expand All @@ -14,11 +13,11 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'
java-version: 17
distribution: 'zulu' # Alternative distribution options are available.
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<sonar.organization>bogdanakushnir</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.host.url>https://squad-3-core.sc-dev.io</sonar.host.url>
</properties>
</project>
20 changes: 20 additions & 0 deletions src/main/java/org/test/example/Main1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.test.example;

public class Main1 {
public static void main(String[] args) throws Exception{
long j =02343533;
String s;
System.out.println("Hello world!");
int i = 0;
boolean f;

if (i==0){
f = true;
}

String p;
// String p1 = getPassword();
// System.out.println(p1);
}

}

0 comments on commit cce24bc

Please sign in to comment.