Skip to content

TECH: add detekt to danger inline comments #1085

TECH: add detekt to danger inline comments

TECH: add detekt to danger inline comments #1085

Workflow file for this run

# This workflow runs all the checks on pull requests
name: Pull Request Checks
on: pull_request
jobs:
pull-request-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
cache: gradle
- name: Run static analysis
run: make static_analysis
- name: Detekt to Danger
uses: danger/kotlin@1.3.1
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
dangerfile: ".danger/pr_detekt.df.kts"
args: "--failOnErrors --no-publish-check"
- name: Run unit tests
run: make unit_tests
- name: Build project
run: make compile_all