Skip to content

Instantly share code, notes, and snippets.

@fedejordan
Created August 23, 2021 06:35
Show Gist options
  • Save fedejordan/99c8ef05586bc9cc94d610340472599b to your computer and use it in GitHub Desktop.
Save fedejordan/99c8ef05586bc9cc94d610340472599b to your computer and use it in GitHub Desktop.
Blog14 - Modified custom action
module Fastlane
module Actions
class PublishCodeCoverageAction < Action
def self.run(params)
UI.message "Generating Slather report"
UI.message "Obtaining coverage number"
UI.message "Getting commit SHA"
UI.message "Publishing coverage on Github"
end
#####################################################
# @!group Documentation
#####################################################
def self.description
"Publish code coverage to a Github commit status check"
end
def self.details
"This action uses Slather to generate a code coverage report for the current Xcode project status, gets the coverage number, gets the current commit and publish the coverage number via Github API to a status check, making it available to see in pull requests, for example"
end
def self.authors
["Federico Jordan"]
end
def self.is_supported?(platform)
platform == :ios
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment