forked from ruby-grape/danger
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 954 Bytes
/
Copy pathdanger-run.yml
File metadata and controls
33 lines (33 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Danger
on:
pull_request:
types: [ opened, reopened, edited, synchronize ]
workflow_call:
jobs:
danger:
name: Danger
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run Danger
# Note: We use 'dry_run' mode intentionally as part of a two-workflow pattern.
# The actual commenting on GitHub is handled by the danger-comment.yml workflow.
run: bundle exec danger dry_run --verbose
env:
DANGER_REPORT_PATH: danger_report.json
- name: Upload Danger Report
if: always()
uses: actions/upload-artifact@v4
with:
name: danger-report
path: danger_report.json
retention-days: 1
if-no-files-found: ignore