Centralized storing and running our Detekt workflow, this is also where we are centralizing our configuration of Detekt
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 }}
-
Build Dockerfile
docker build -t monta-detekt:latest -f Dockerfile.monta-detekt .
-
Run
monta-detekt:latest
on your repo with:# cd into your repo docker run --rm -v $PWD:/app monta-detekt:latest