File tree Expand file tree Collapse file tree 3 files changed +24
-22
lines changed
Expand file tree Collapse file tree 3 files changed +24
-22
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
710A 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
5254This 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 ) .
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ tasks.jacocoTestReport { reports { xml.required.set(true) } }
4444// Конфигурация плагина org.sonarqube
4545sonar {
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}
You can’t perform that action at this time.
0 commit comments