Skip to content

Commit

Permalink
Run danger on forked PR
Browse files Browse the repository at this point in the history
  • Loading branch information
manicmaniac committed Nov 30, 2024
1 parent 0fcbfa9 commit b272148
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 28 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: danger
on:
pull_request_target:
types:
- opened
- synchronized
- reopened
jobs:
danger:
runs-on: ubuntu-latest
permissions:
pull-requests: write
statuses: write
steps:
- uses: actions/checkout@v4
with:
path: default
- uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
path: topic
set-safe-directory: false
- uses: ruby/setup-ruby@v1
working-directory: default
with:
ruby-version: '3.3'
bundler-cache: true
- run: bundle exec danger --dangerfile=../default/Dangerfile
working-directory: topic
env:
BUNDLE_GEMFILE: ../default/Gemfile
DANGER_DO_NOT_POST_INVALID_DANGERFILE_ERROR: ''
DAGNER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 0 additions & 22 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: test
on: [push]
jobs:
test:
Expand Down
5 changes: 0 additions & 5 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
rubocop.lint inline_comment: true

plugin_lint.lint_docs

periphery.binary_path = 'bin/periphery'
periphery.scan(project: 'spec/support/fixtures/test.xcodeproj', schemes: 'test', targets: 'test') do |violation|
!violation.message.include?('unused')
end

0 comments on commit b272148

Please sign in to comment.