Skip to content

Commit

Permalink
sonar on all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
optyfr committed Apr 12, 2024
1 parent 7e86183 commit 6c22a7b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Java CI with Gradle

on:
push:
branches: [ master ]
branches: [ '*' ]
pull_request:
branches: [ master ]

Expand All @@ -23,7 +23,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21.0.1'
java-version: '21.0.2'

- name: Build with Gradle
run: ./gradlew build -xtest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21.0.1'
java-version: '21.0.2'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21.0.1'
java-version: '21.0.2'

- name: JPackage MSI with Gradle
run: ./gradlew build jpackage -PtargetPlatform=win -PinstallerType=msi
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21.0.1'
java-version: '21.0.2'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: SonarCloud
on:
push:
branches:
- master
- '*'
pull_request:
types: [opened, synchronize, reopened]
jobs:
Expand Down Expand Up @@ -35,5 +35,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build codeCoverageReport jacocoTestReport sonarqube --stacktrace
run: ./gradlew build codeCoverageReport jacocoTestReport sonar --stacktrace

2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginManagement {
plugins {
id "org.sonarqube" version "4.+"
id "org.sonarqube" version "latest.release"
}
}
rootProject.name = 'JRomManager'
Expand Down

0 comments on commit 6c22a7b

Please sign in to comment.