Update Kotlin core dependencies #14741
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: Run diKTat | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
diktat_check: | |
runs-on: ubuntu-latest | |
permissions: | |
# required for all workflows | |
security-events: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-version: wrapper | |
arguments: | | |
diktatCheck | |
mergeDiktatReports | |
-Pdiktat.githubActions=true | |
-Pdetekt.multiplatform.disabled=true | |
--build-cache | |
--continue | |
-PgprUser=${{ github.actor }} | |
-PgprKey=${{ secrets.GITHUB_TOKEN }} | |
- name: Upload SARIF report to Github | |
uses: github/codeql-action/upload-sarif@v2 | |
if: ${{ always() }} | |
with: | |
sarif_file: build/reports/diktat/diktat-merged.sarif | |
- name: Upload SARIF artifacts | |
uses: actions/upload-artifact@v3 | |
if: ${{ failure() }} | |
with: | |
name: sarif-reports | |
path: "**/build/reports/diktat" | |
retention-days: 1 |