|
|
@@ -1,32 +1,25 @@
|
|
|
name: Danger
|
|
|
+
|
|
|
on:
|
|
|
pull_request:
|
|
|
+ types: [opened, synchronize, edited]
|
|
|
branches:
|
|
|
- - stable
|
|
|
+ - stable
|
|
|
|
|
|
jobs:
|
|
|
Danger:
|
|
|
- runs-on: macos-latest
|
|
|
+ runs-on: ubuntu-18.04
|
|
|
steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
- - name: Cache Bundle Dependencies
|
|
|
- uses: actions/cache@v1
|
|
|
- with:
|
|
|
- path: vendor/bundle
|
|
|
- key: 1-gems-{{ checksum "Gemfile.lock" }}
|
|
|
- restore-keys: 1-gems-
|
|
|
- - name: Set Ruby Version
|
|
|
- uses: actions/setup-ruby@v1
|
|
|
+ - uses: actions/checkout@v1
|
|
|
+
|
|
|
+ - uses: ruby/setup-ruby@v1
|
|
|
with:
|
|
|
- ruby-version: 2.6
|
|
|
- - name: Install Ruby Dependencies
|
|
|
+ ruby-version: 2.6 # Not needed with a .ruby-version file
|
|
|
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
|
+
|
|
|
+ - name: Danger
|
|
|
run: |
|
|
|
- bundle config path vendor/bundle
|
|
|
- bundle check || bundle install
|
|
|
- env:
|
|
|
- BUNDLE_JOBS: 4
|
|
|
- BUNDLE_RETRY: 3
|
|
|
- - name: Running Danger
|
|
|
- run: bundle exec danger
|
|
|
+ bundle exec danger --fail-on-errors=true
|
|
|
+ shell: bash
|
|
|
env:
|
|
|
- DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
|
|
+ DANGER_GITHUB_API_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
|