Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP setting up Danger for PRs. #30

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
id: npm-ci
run: npm ci

- name: Print npm version
id: npm-version
run: npm --version

- name: Check Format
id: npm-format-check
run: npm run format:check
Expand All @@ -44,6 +48,12 @@ jobs:
id: npm-ci-test
run: npm run ci-test

- name: Danger
id: npm-danger
run: npm run ci-danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}

test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { message, danger } from 'danger'

const modifiedMD = danger.git.modified_files.join('- ')
message(`Changed Files in this PR: \n - ${modifiedMD}`)
Loading
Loading