Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing #17

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}

}
Loading