Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshafedo committed Aug 25, 2023
1 parent 1e627e9 commit 26e5a72
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
description: Ballerina Docker version
required: true
default: 'nightly'
artifact_id:
description: Artifact Id of the custom Ballerina distribution
required: false
default: ''
client_method:
description: Expected Client Method Type
required: true
default: 'remote'
options: ['remote', 'resource']
artifact_id:
description: Artifact Id of the custom Ballerina distribution
required: false
default: ''
connector_list:
description: Comma separated list of connectors to regenerate
required: false
Expand Down
11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ task testOpenAPITool {
}
}

task generateNbuildLatestOpenAPIConnectors {
task generateAndBuildLatestOpenAPIConnectors {
if (testConnectorGeneration) {
println "Task: Re-generate and build connectors..."

Expand Down Expand Up @@ -248,9 +248,9 @@ task generateNbuildLatestOpenAPIConnectors {

def constructSummaryReport(ballerinaDistributionPath, totalConnectors, generationFailedConnectors, compilationFailedConnectors, execConnectors, clientMethod) {
def summary = "# Summary \n\n"
summary += "Date and Time: ${new Date()}\n"
summary += "Timestamp: ${new Date()}\n"
summary += "Ballerina Version: ${getBallerinaVersion(ballerinaDistributionPath).toString()}\n"
summary += "Client Methid Type: ${clientMethod}\n"
summary += "Client Method Type: ${clientMethod}\n"
summary += "Total Connectors in the Repository: ${totalConnectors}\n"
summary += "Number of Connectors Executed: ${execConnectors}\n\n"

Expand All @@ -269,13 +269,12 @@ def constructSummaryReport(ballerinaDistributionPath, totalConnectors, generatio
}
}
} else {
summary += "All connectors executed successfully.\n"
summary += "All connectors are regenerated and compiled successfully.\n"
}

return summary
}


def getBallerinaVersion(ballerinaDistributionPath) {
def command = ballerinaDistributionPath + "/bin/bal -v"
def process = command.execute()
Expand Down

0 comments on commit 26e5a72

Please sign in to comment.