Skip to content

Commit 8ed771d

Browse files
[CI] Update danger usage (#847)
1 parent b20142e commit 8ed771d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/smoke-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
- name: Public Interface Validation
144144
run: bundle exec fastlane validate_public_interface
145145
- name: Run Danger
146-
run: bundle exec danger
146+
run: bundle exec fastlane lint_pr
147147
- name: Run Fastlane Linting
148148
run: bundle exec fastlane rubocop
149149
- name: Run SwiftFormat Linting

fastlane/Fastfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ before_all do |lane|
2727
if is_ci
2828
setup_ci
2929
setup_git_config
30-
select_xcode(version: xcode_version) unless [:sonar_upload, :allure_launch, :allure_upload, :pod_lint, :stop_e2e_helpers].include?(lane)
30+
select_xcode(version: xcode_version) unless [:sonar_upload, :allure_launch, :allure_upload, :pod_lint, :stop_e2e_helpers, :merge_main].include?(lane)
3131
elsif lane == :test_e2e
3232
stop_e2e_helpers
3333
end
@@ -673,6 +673,11 @@ lane :rubocop do
673673
sh('bundle exec rubocop')
674674
end
675675

676+
desc 'Run PR linting'
677+
lane :lint_pr do
678+
danger(dangerfile: 'Dangerfile') if is_ci
679+
end
680+
676681
desc 'Run source code formatting/linting'
677682
lane :run_swift_format do |options|
678683
Dir.chdir('..') do

0 commit comments

Comments
 (0)