Skip to content

Commit

Permalink
Updating green X icons to red X icons
Browse files Browse the repository at this point in the history
  • Loading branch information
tamerbader committed Jul 2, 2024
1 parent 14f6d07 commit 57117b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Scripts/git/pull-request-validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Validate Podspecs, SPM, and Templated Files
unless Validator.validate_podspecs && Validator.validate_spm_package && Validator.validate_template_files
puts " Pull Request Validation Failed"
puts " Pull Request Validation Failed"
exit 1
else
puts "✅ Pull Request Validation Passed"
Expand Down
6 changes: 3 additions & 3 deletions Scripts/sdk_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.validate_podspecs

# Validates output
unless stdout.include?("All the specs passed validation.")
puts " Podspecs could not be validated"
puts " Podspecs could not be validated"
puts stdout
return false
end
Expand All @@ -32,7 +32,7 @@ def self.validate_spm_package

# Validates output of resolve does not have errors.
unless stderr.nil? || stderr.empty?
puts " SPM Package could not be validated"
puts " SPM Package could not be validated"
puts stderr
return false
end
Expand All @@ -45,7 +45,7 @@ def self.validate_spm_package
# Validates SPM was able to resolve and extract the xcframeworks
for package in packages_to_validate do
unless File.directory?("./.build/artifacts/mobile-payments-sdk-ios/#{package}/#{package}.xcframework")
puts " SPM was unable to resolve #{package}"
puts " SPM was unable to resolve #{package}"
FileUtils.rm_rf('.build')
return false
end
Expand Down

0 comments on commit 57117b4

Please sign in to comment.