-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust test resources, add in files that cant be skipped
- Loading branch information
1 parent
47890aa
commit 5b74fee
Showing
4 changed files
with
103 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"type": "message", | ||
"attachments": [ | ||
{ | ||
"contentType": "application/vnd.microsoft.card.adaptive", | ||
"contentUrl": null, | ||
"content": { | ||
"\$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"msteams": { | ||
"width": "Full" | ||
}, | ||
"type": "AdaptiveCard", | ||
"version": "1.2", | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"size": "Large", | ||
"weight": "Bolder", | ||
"color": "<% if (success) { %>Good<% } else { %>Attention<%} %>", | ||
"text": "nf-core/testest v${version} - ${runName}", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"spacing": "None", | ||
"text": "Completed at ${dateComplete} (duration: ${duration})", | ||
"isSubtle": true, | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "<% if (success) { %>Pipeline completed successfully!<% } else { %>Pipeline completed with errors. The full error message was: ${errorReport}.<% } %>", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "The command used to launch the workflow was as follows:", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "${commandLine}", | ||
"isSubtle": true, | ||
"wrap": true | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"type": "Action.ShowCard", | ||
"title": "Pipeline Configuration", | ||
"card": { | ||
"type": "AdaptiveCard", | ||
"\$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"body": [ | ||
{ | ||
"type": "FactSet", | ||
"facts": [<% out << summary.collect{ k,v -> "{\"title\": \"$k\", \"value\" : \"$v\"}"}.join(",\n") %> | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"attachments": [ | ||
{ | ||
"fallback": "Plain-text summary of the attachment.", | ||
"color": "<% if (success) { %>good<% } else { %>danger<%} %>", | ||
"author_name": "nf-core/testest ${version} - ${runName}", | ||
"author_icon": "https://www.nextflow.io/docs/latest/_static/favicon.ico", | ||
"text": "<% if (success) { %>Pipeline completed successfully!<% } else { %>Pipeline completed with errors<% } %>", | ||
"fields": [ | ||
{ | ||
"title": "Command used to launch the workflow", | ||
"value": "```${commandLine}```", | ||
"short": false | ||
} | ||
<% | ||
if (!success) { %> | ||
, | ||
{ | ||
"title": "Full error message", | ||
"value": "```${errorReport}```", | ||
"short": false | ||
}, | ||
{ | ||
"title": "Pipeline configuration", | ||
"value": "<% out << summary.collect{ k,v -> k == "hook_url" ? "_${k}_: (_hidden_)" : ( ( v.class.toString().contains('Path') || ( v.class.toString().contains('String') && v.contains('/') ) ) ? "_${k}_: `${v}`" : (v.class.toString().contains('DateTime') ? ("_${k}_: " + v.format(java.time.format.DateTimeFormatter.ofLocalizedDateTime(java.time.format.FormatStyle.MEDIUM))) : "_${k}_: ${v}") ) }.join(",\n") %>", | ||
"short": false | ||
} | ||
<% } | ||
%> | ||
], | ||
"footer": "Completed at <% out << dateComplete.format(java.time.format.DateTimeFormatter.ofLocalizedDateTime(java.time.format.FormatStyle.MEDIUM)) %> (duration: ${duration})" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters