Skip to content

Commit

Permalink
remove custom args
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixl123 committed Feb 24, 2019
1 parent c31466c commit 3277dfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ action "WebPageTestActions" {
"GITHUB_TOKEN",
"WEBPAGETEST_API_KEY",
]
args = ["--location=Dulles_GalaxyS7"]
env = {
TEST_URL = "https://jcofman.de"
}
Expand Down
10 changes: 4 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runAudit();
async function runAudit() {
try {
if (event === "push") {
tools.log("Welcome to this example!");
tools.log("### Action triggered! ###");

// 1. An authenticated instance of `@octokit/rest`, a GitHub API SDK
const octokit = tools.github;
Expand Down Expand Up @@ -56,7 +56,7 @@ async function runWebPagetest(wpt) {
{
location: argv.location || "Dulles_MotoG4", // <location> string to test from https://www.webpagetest.org/getLocations.php?f=html
connectivity: argv.connectivity || "3GSlow", // <profile> string: connectivity profile -- requires location to be specified -- (Cable|DSL|3GSlow|3G|3GFast|4G|LTE|Edge|2G|Dial|FIOS|Native|custom) [Cable]
runs: argv.runs || 1, // <number>: number of test runs [1]
runs: argv.runs || 3, // <number>: number of test runs [1]
first: argv.first || false, // skip the Repeat View test
video: argv.video || true, // capture video
pollResults: argv.pollResults || 5, // <number>: poll results
Expand All @@ -71,7 +71,7 @@ async function runWebPagetest(wpt) {
function(err, result) {
if (err) {
tools.log.error(
`There was an issue while running the webpagetest run ${JSON.stringify(
`There was an issue while running the WebPageTest run ${JSON.stringify(
err
)}`
);
Expand All @@ -86,11 +86,9 @@ async function runWebPagetest(wpt) {
}

function convertToMarkdown(result) {
console.log(result.data.testUrl);
const { data } = result;
console.log(data.testUrl);
const dataAsMarkdown = `
# WebpageTest report
# WebPageTest report
* run id: ${data.id}
* URL testid: ${data.testUrl}
* Summary of the test: ${data.summary}
Expand Down

1 comment on commit 3277dfa

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WebPageTest report

Median Run Results

Filmstrip First View

0 milliseconds 4604 milliseconds 4703 milliseconds 4721 milliseconds 4740 milliseconds 4758 milliseconds 4776 milliseconds 4793 milliseconds 4811 milliseconds 4970 milliseconds 4999 milliseconds 5023 milliseconds 10335 milliseconds 10807 milliseconds
alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text
0 31 31 31 31 31 31 31 31 37 37 37 98 100

Filmstrip Repeat View

0 milliseconds 2430 milliseconds 3209 milliseconds
alt text alt text alt text
0 37 100
## Median Metrics
| View | First Paint | First Contentful Paint | First Meaningful Paint | Time to First Byte | Time to interactive |  Render Started |  Visualy Completed | SpeedIndex | Load Time |
|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|
FirstView  | 4351.3999999996 | 4352 | 14024 | 6757.828 | 2626 | 4604 | 10807 | 8245 | 10807 |
RepeatView | 2283.4999999977 | 2284 | 3816 | 6757.828 | 2536 | 2430 | 3209 | 2920 | 3209 |  

Median Waterfall

FirstView

alt text

RepeatView

alt text

Median Requests

FirstView

File FileSize
/ 52.16 kB
/webpack-runtime-71d2e738f1c38826643a.js 1.6 kB
/app-1a8aa215e00db785f9e3.js 79.93 kB
/0-243b52913f3ce02fef6e.js 17.7 kB
/1-a43530dbd4fab8da8db0.js 9.47 kB
/component---src-pages-index-js-d1eb54d0a82ce683b229.js 3.22 kB
/2-80f04f0b6ebb20b0b09f.js 46.54 kB
/static/d/438/path---index-6a9-HBgjAjdLcRlbZoRA0hWxcvXaBk.json 1.09 kB
/static/homebg-e3a22742ba7f82f31980270829d50b9c.webp 25.42 kB
/static/raleway-latin-400-2075794c8e9e7e48e5fbf1b2313e7adf.woff2 19.96 kB
/static/raleway-latin-600-bd2bb116d8276633fec3aba46fe9d254.woff2 20.16 kB
/static/raleway-latin-400italic-de4bb8c8d39843b4d00f591c31e747b4.woff2 20.87 kB
/analytics.js 17.13 kB
/sw.js 1.89 kB
/16-856da616ee4fd9367ee3.js 45.82 kB
/WorldMap-b0a556f4ce1da875b6cf.js 65.37 kB
/pages-manifest-f5812041197ed31ad3ea.js 689 B
/r/collect?v=1&_v=j73&a=499572729&t=pageview&_s=1&dl=https%3A%2F%2Fjcofman.de%2F&dp=%2F&ul=en-us&de=UTF-8&dt=All%20posts%20%7C%20Jacob%20Cofman%20Website&sd=24-bit&sr=360x640&vp=360x512&je=0&_u=YEBAAEAB~&jid=694379258&gjid=816090632&cid=579975695.1551011230&tid=UA-134206784-1&_gid=1132834852.1551011230&_r=1&z=787145141 35 B
/workbox-v3.6.3/workbox-sw.js 828 B
/workbox-v3.6.3/workbox-core.prod.js 2.92 kB
/workbox-v3.6.3/workbox-precaching.prod.js 2.22 kB
/static/d/196/path---me-8-f-5-217-NZuapzHg3X9TaN1iIixfv1W23E.json 18 B
/component---src-pages-me-index-js-06d7c8ce98915b0ff17f.js 5.96 kB
/icons/icon-192x192.png 3.71 kB
/icons/icon-48x48.png 728 B
/workbox-v3.6.3/workbox-routing.prod.js 1.34 kB
/manifest.webmanifest 713 B
/workbox-v3.6.3/workbox-strategies.prod.js 1.24 kB
/icons/icon-144x144.png 2.6 kB
/idb-keyval-iife.min.js 505 B
/app.4f9ecb3eb06aa357a013.css 1.17 kB
/component---node-modules-gatsby-plugin-offline-app-shell-js-2e26823e9ff53680640f.js 483 B
/component---src-pages-404-js-7962dd7f668aad11e815.js 385 B
/static/d/164/path---404-html-516-62a-NZuapzHg3X9TaN1iIixfv1W23E.json 18 B
/static/d/520/path---offline-plugin-app-shell-fallback-a-30-c5a-NZuapzHg3X9TaN1iIixfv1W23E.json 18 B
/offline-plugin-app-shell-fallback/index.html 2.78 kB
/manifest.webmanifest 713 B
/sitemap.xml 290 B
/icons/icon-48x48.png 728 B
/icons/icon-72x72.png 1.14 kB
/icons/icon-96x96.png 1.54 kB
/icons/icon-256x256.png 5 kB
/icons/icon-384x384.png 8.34 kB
/icons/icon-512x512.png 10.96 kB
/icons/icon-144x144.png 2.6 kB
/icons/icon-192x192.png 3.71 kB
/ NaN undefined
/analytics/ NaN undefined

RepeatView

File FileSize
/r/collect?v=1&_v=j73&a=1393999786&t=pageview&_s=1&dl=https%3A%2F%2Fjcofman.de%2F&dp=%2F&ul=en-us&de=UTF-8&dt=All%20posts%20%7C%20Jacob%20Cofman%20Website&sd=24-bit&sr=360x640&vp=360x512&je=0&_u=SACAAEAB~&jid=2125570318&gjid=22385860&cid=1523758894.1551011240&tid=UA-134206784-1&_gid=165745434.1551011240&_r=1&z=1084207876 35 B
/icons/icon-144x144.png 2.6 kB
/sw.js 1.89 kB

Please sign in to comment.