Skip to content

Commit 54b3393

Browse files
committed
output wpt settings in a group for debugging
1 parent 8222580 commit 54b3393

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const runTest = (wpt, url, options) => {
1919
wpt.runTest(url, tempOptions, async(err, result) => {
2020
try {
2121
if (result) {
22+
core.debug(result);
2223
return resolve({'result':result,'err':err});
2324
} else {
2425
return reject(err);
@@ -63,7 +64,6 @@ async function renderComment(data) {
6364
}
6465
}
6566
async function run() {
66-
6767
const wpt = new WebPageTest('www.webpagetest.org',WPT_API_KEY);
6868

6969
//TODO: make this configurable
@@ -81,6 +81,11 @@ async function run() {
8181
if (WPT_LABEL) {
8282
options.label = WPT_LABEL;
8383
}
84+
85+
core.startGroup('WebPageTest Configuration');
86+
core.info(`WebPageTest settings: ${JSON.stringify(options, null, ' ')}`)
87+
core.endGroup();
88+
8489
core.startGroup(`Testing urls in WebPageTest..`);
8590
//for our commit
8691
let runData = {};

0 commit comments

Comments
 (0)