Skip to content

Restructure build to add flexibility for detekt-gradle-plugin #3662

Restructure build to add flexibility for detekt-gradle-plugin

Restructure build to add flexibility for detekt-gradle-plugin #3662

Workflow file for this run

name: "Danger"
on:
pull_request_target:
types: [ assigned, closed, opened, synchronize, reopened ]
permissions:
actions: write
checks: write
contents: write
issues: write
pull-requests: write
statuses: write
jobs:
danger:
if: github.event.sender != 'codecov' && github.repository == 'detekt/detekt'
name: Danger JS
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Setup Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: "16"
cache: "yarn"
cache-dependency-path: "website/yarn.lock"
- name: Install Yarn Dependencies
working-directory: bots/
run: yarn install
- name: Run Danger
working-directory: bots/
run: yarn danger ci
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DETEKT_CI_GITHUB_USER_TOKEN }}