Bump the github_actions group in /.github/workflows with 2 updates #337
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: Detekt check | |
on: pull_request | |
jobs: | |
detekt: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "temurin" | |
java-version: 11 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Set up reviewdog | |
uses: reviewdog/action-setup@v1 | |
- name: Run check | |
run: ./gradlew detektAll -i | |
- name: "Upload report" | |
uses: actions/upload-artifact@v2 | |
with: | |
name: DetektHTMLReport | |
path: build/reports/detekt/detekt.html | |
- name: Run reviewdog | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: cat build/reports/detekt/detekt.xml | reviewdog -f=checkstyle -reporter=github-pr-review |