Skip to content

Instantly share code, notes, and snippets.

@damian-burke
Created September 13, 2020 21:08
Show Gist options
  • Select an option

  • Save damian-burke/02eab8ccff4e769d57f7dd877f1a09c0 to your computer and use it in GitHub Desktop.

Select an option

Save damian-burke/02eab8ccff4e769d57f7dd877f1a09c0 to your computer and use it in GitHub Desktop.
name: DangerJS
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Danger
run: yarn add danger danger-plugin-lint-report@1.0.0
- name: Run KtLint
run: ./gradlew ktlintCheck
continue-on-error: true
- name: Run Detekt
run: ./gradlew detekt
continue-on-error: true
- name: Run Android Lint
run: ./gradlew lintDebug
continue-on-error: true
- name: Run Danger
run: yarn danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment