chore(deps): update detekt to v1.23.7 #815
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Validate gradle wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Cache SonarCloud packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: Cache global .gradle folder | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle | |
key: gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.kt*') }}-${{ hashFiles('**/*.java') }} | |
restore-keys: | | |
gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
- name: Setup gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Run build | |
run: ./gradlew build check detekt mergeDetektSarif :gradle-plugins:buildPlugins --continue | |
- uses: github/codeql-action/upload-sarif@v3 | |
if: success() || failure() | |
with: | |
sarif_file: build/detekt-merged.sarif | |
category: detekt | |
- name: Upload failure artifacts | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports | |
path: '**/build/reports' | |
- name: Re-run all tests with Gradle | |
run: ./gradlew check | |
- name: Report analysis to sonar | |
run: ./gradlew sonar | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |