Skip to content

Instantly share code, notes, and snippets.

@ardydedase
Created May 8, 2022 00:06
Show Gist options
  • Save ardydedase/06ca0f093e692524fed6623bc0457800 to your computer and use it in GitHub Desktop.
Save ardydedase/06ca0f093e692524fed6623bc0457800 to your computer and use it in GitHub Desktop.
# Meant to be used locally for testing.
steps:
- name: node:16
env:
- 'DANGER_MANUAL_CI=CloudBuild'
- 'DANGER_MANUAL_GH_REPO=ardydedase/danger-example'
# TODO: Replace with your own GitHub token
# - 'DANGER_GITHUB_API_TOKEN=<REPLACE_WITH_YOUR_GH_TOKEN>'
args:
- '-c'
- |
echo "Running Danger build..."
npm install
# PR number is hardcoded for local testing
DANGER_MANUAL_PR_NUM=1 node_modules/danger/distribution/commands/danger-ci.js
id: danger-code-review
waitFor:
- '-'
entrypoint: bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment