diff --git a/.github/workflows/build_on_pull_request.yml b/.github/workflows/build_on_pull_request.yml index 5346c05..6a59b0c 100644 --- a/.github/workflows/build_on_pull_request.yml +++ b/.github/workflows/build_on_pull_request.yml @@ -27,5 +27,20 @@ jobs: - name: Run All Unit Tests run: ./gradlew :app:testCafeBazaarDebugUnitTest - - name: Run Detekt - run: ./gradlew detekt + detekt: + name: Check Code Quality + runs-on: ubuntu-latest + + steps: + - name: Clone repo + uses: actions/checkout@v2 + with: + fetch-depth: 1 + ref: ${{ github.head_ref }} + + - name: detekt + uses: alaegin/Detekt-Action@v1.23.5 + with: + github_token: ${{ secrets.github_token }} + detekt_config: detekt.yml + reviewdog_reporter: github-pr-review