Skip to content

Commit a46104c

Browse files
author
Maksim Litvinov
committed
add bages
1 parent 5fa85ce commit a46104c

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ jobs:
2222
run: ./gradlew build
2323
- name: Generate coverage report
2424
run: make report
25-
# - name: Cache SonarQube packages
26-
# uses: actions/cache@v4
27-
# with:
28-
# path: ~/.sonar/cache
29-
# key: ${{ runner.os }}-sonar
30-
# restore-keys: ${{ runner.os }}-sonar
31-
# - name: Cache Gradle packages
32-
# uses: actions/cache@v4
33-
# with:
34-
# path: ~/.gradle/caches
35-
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
36-
# restore-keys: ${{ runner.os }}-gradle
37-
# - name: Build and analyze
38-
# env:
39-
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
40-
# run: ./gradlew sonar --info
25+
- name: Cache SonarQube packages
26+
uses: actions/cache@v4
27+
with:
28+
path: ~/.sonar/cache
29+
key: ${{ runner.os }}-sonar
30+
restore-keys: ${{ runner.os }}-sonar
31+
- name: Cache Gradle packages
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.gradle/caches
35+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
36+
restore-keys: ${{ runner.os }}-gradle
37+
- name: Build and analyze
38+
env:
39+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
40+
run: ./gradlew sonar --info

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# java-package
22

33
![Java CI](https://github.com/hexlet-boilerplates/java-package/workflows/Java%20CI/badge.svg)
4-
[![Maintainability](https://api.codeclimate.com/v1/badges/bc953fb0ab378995dab3/maintainability)](https://codeclimate.com/github/hexlet-boilerplates/java-package/maintainability)
5-
[![Test Coverage](https://api.codeclimate.com/v1/badges/bc953fb0ab378995dab3/test_coverage)](https://codeclimate.com/github/hexlet-boilerplates/java-package/test_coverage)
4+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=hexlet-boilerplates_java-package&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=hexlet-boilerplates_java-package)
5+
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=hexlet-boilerplates_java-package&metric=bugs)](https://sonarcloud.io/summary/new_code?id=hexlet-boilerplates_java-package)
6+
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=hexlet-boilerplates_java-package&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=hexlet-boilerplates_java-package)
7+
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=hexlet-boilerplates_java-package&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=hexlet-boilerplates_java-package)
8+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=hexlet-boilerplates_java-package&metric=coverage)](https://sonarcloud.io/summary/new_code?id=hexlet-boilerplates_java-package)
69

710
A project template with only the bare minimum of structure. A good starting point for a small project.
811

@@ -44,9 +47,8 @@ make update
4447

4548
## asdf
4649

47-
On *nix and macOS to manage Java versions we recommend using asdf https://github.com/asdf-vm/asdf.
50+
On *nix and macOS to manage Java versions we recommend using asdf https://github.com/asdf-vm/asdf.
4851

49-
5052
[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=java-package)
5153

5254
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=java-package).

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ tasks.jacocoTestReport { reports { xml.required.set(true) } }
4444
// Конфигурация плагина org.sonarqube
4545
sonar {
4646
properties {
47-
property("sonar.projectKey", "hexlet_java-package")
48-
property("sonar.organization", "hexlet")
47+
property("sonar.projectKey", "hexlet-boilerplates_java-package")
48+
property("sonar.organization", "hexlet-boilerplates")
4949
property("sonar.host.url", "https://sonarcloud.io")
5050
}
5151
}

0 commit comments

Comments
 (0)