Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 829 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 829 Bytes

Detekt Action

Centralized storing and running our Detekt workflow, this is also where we are centralizing our configuration of Detekt

How to use

Add this step to your pull_request.yml inside of your github workflows with the following block

  static-code-analysis:
    name: Static Code Analysis
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - name: Run detekt
        uses: monta-app/detekt-action@main
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

Local Usage

  1. Build Dockerfile

    docker build -t monta-detekt:latest -f Dockerfile.monta-detekt .
  2. Run monta-detekt:latest on your repo with:

    # cd into your repo
    docker run --rm -v $PWD:/app monta-detekt:latest