summaryrefslogtreecommitdiff
path: root/.github/workflows/danger.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/danger.yml')
-rw-r--r--.github/workflows/danger.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml
new file mode 100644
index 0000000..fcc506f
--- /dev/null
+++ b/.github/workflows/danger.yml
@@ -0,0 +1,26 @@
+name: CI
+on:
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ danger:
+ runs-on: ubuntu-latest
+ if: ${{ github.event_name == 'pull_request' }}
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 2.7
+ bundler-cache: true
+ - uses: MeilCli/danger-action@v5.5.0
+ with:
+ danger_file: Dangerfile
+ danger_id: danger-pr
+ install_path: vendor/bundle
+ plugins_file: Gemfile
+ env:
+ DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file