Skip to content

Commit

Permalink
Merge pull request #8 from thelooter/renovate/gradle-gradle-build-act…
Browse files Browse the repository at this point in the history
…ion-digest

Update gradle/gradle-build-action digest to 86da5e6
  • Loading branch information
thelooter authored Jul 11, 2022
2 parents de76e1c + 4193d5f commit 6075225
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 12 deletions.
42 changes: 30 additions & 12 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,34 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@15453523bd6fa4b03dba1971719efc781302b46c
with:
arguments: build
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@86da5e6c4e92d4e396a17956ccf7df848419bdde
with:
arguments: build
- name: Test with Gradle
run: ./gradlew test

- name: Test with Gradle
run: ./gradlew test
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Test with Gradle
run: ./gradlew build sonarqube --info
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'jacoco'
id 'org.sonarqube' version '3.4.0.2513'
}

repositories {
Expand Down Expand Up @@ -57,4 +58,12 @@ jacocoTestReport {
xml.enabled(true)
html.enabled(true)
}
}

sonarqube {
properties {
property "sonar.projectKey", "thelooter_EventChecker"
property "sonar.organization", "thelooter"
property "sonar.host.url", "https://sonarcloud.io"
}
}

0 comments on commit 6075225

Please sign in to comment.