Skip to content

Commit 33dad2f

Browse files
authored
Merge pull request #21 from catchpoint/update_packages
Update to latest api wrapper
2 parents 94404e3 + 42c8f7a commit 33dad2f

File tree

944 files changed

+275159
-144064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

944 files changed

+275159
-144064
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
- name: Checkout
3333
uses: actions/checkout@v2
3434

35-
- name: WebPageTest
36-
uses: WPO-Foundation/webpagetest-github-action@main
35+
- name: WebPageTest
36+
uses: catchpoint/WebPageTest.github-action@main
3737
with:
3838
apiKey: ${{ secrets.WPT_API_KEY }}
3939
urls: |
@@ -62,7 +62,7 @@ The tests will be run with the following WebPageTest settings:
6262
However, WebPageTest is capable of going _very_ deep, and the GitHub Action provides a number of configuration settings to help fine-tune your tests and even fail a pull request if performance budgets aren't met.
6363

6464
### Setting performance budgets
65-
WebPageTest's GitHub Action uses the [WebPageTest API Wrapper for NodeJS](https://github.com/marcelduran/webpagetest-api) under the hood. The wrapper provides [test specs](https://github.com/marcelduran/webpagetest-api/wiki/Test-Specs) functionality that lets you set budgets on any of the metrics returned by the WebPageTest API.
65+
WebPageTest's GitHub Action uses the [WebPageTest API Wrapper for NodeJS](https://github.com/catchpoint/WebPageTest.api-nodejs) under the hood. The wrapper provides [test specs](https://github.com/catchpoint/WebPageTest.api-nodejs/wiki/Test-Specs) functionality that lets you set budgets on any of the metrics returned by the WebPageTest API.
6666

6767
The GitHub Action lets you provide a path to a specs JSON file using the `budget` input. If a specs file is included, WebPageTest's GitHub Action will test the results against the budgets you've defined. If any budget isn't met, the tests will fail and you'll be provided with links to dig into the full WebPageTest results to see what was slowing things down.
6868

@@ -80,7 +80,7 @@ jobs:
8080
uses: actions/checkout@v2
8181
8282
- name: WebPageTest
83-
uses: WPO-Foundation/webpagetest-github-action@main
83+
uses: catchpoint/WebPageTest.github-action@main
8484
with:
8585
apiKey: ${{ secrets.WPT_API_KEY }}
8686
urls: |
@@ -106,7 +106,7 @@ WebPageTest would test each run's First Contentful Paint. If the First Contentfu
106106

107107
![Example of a WPT action failing the PR if a budget is exceeded](/images/wpt-action-fail-pr.png)
108108

109-
The specs format provides tremendous flexiblity in which metrics you want to budget against. For more information, check out [the official documentation](https://github.com/marcelduran/webpagetest-api/wiki/Test-Specs).
109+
The specs format provides tremendous flexiblity in which metrics you want to budget against. For more information, check out [the official documentation](https://github.com/catchpoint/WebPageTest.api-nodejs/wiki/Test-Specs).
110110

111111
### Testing against a deployment URL
112112
If you are going to set and enforce performance budgets, **make sure to pass a preview URL** to test against to make sure that you're testing against the latest changes, not against a prior version of your site.
@@ -131,7 +131,7 @@ jobs:
131131
site_name: 'your-netlify-site-name'
132132
133133
- name: WebPageTest
134-
uses: WPO-Foundation/webpagetest-github-action@main
134+
uses: catchpoint/WebPageTest.github-action@main
135135
with:
136136
apiKey: ${{ secrets.WPT_API_KEY }}
137137
urls: |
@@ -149,7 +149,7 @@ _If you are testing against a Netlify deployment preview, it's important to note
149149
```
150150
151151
### Customizing your WebPageTest tests
152-
There are a _lot_ of [options available in WebPageTest](https://github.com/marcelduran/webpagetest-api#test-works-for-runtest-method-only) to customize your test results, record custom metrics, or do advanced scripting and multi-page flows.
152+
There are a _lot_ of [options available in WebPageTest](https://github.com/catchpoint/WebPageTest.api-nodejs#test-works-for-runtest-method-only) to customize your test results, record custom metrics, or do advanced scripting and multi-page flows.
153153
154154
To give you the ability to customize you tests, the WebPageTest GitHub Action let's you provide the path to a JSON object with your test options, using the `wptOptions` input.
155155
@@ -167,7 +167,7 @@ jobs:
167167
uses: actions/checkout@v2
168168
169169
- name: WebPageTest
170-
uses: WPO-Foundation/webpagetest-github-action@main
170+
uses: catchpoint/WebPageTest.github-action@main
171171
with:
172172
apiKey: ${{ secrets.WPT_API_KEY }}
173173
urls: |

action.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
name: 'WebPageTest GitHub Action'
2-
author: 'WebPageTest'
3-
description: 'Automatically test code changes in WebPageTest and enforce performance budgets'
1+
name: "WebPageTest GitHub Action"
2+
author: "WebPageTest"
3+
description: "Automatically test code changes in WebPageTest and enforce performance budgets"
44
inputs:
55
apiKey:
6-
description: 'WebPageTest API Token'
6+
description: "WebPageTest API Token"
77
required: true
88
urls:
9-
description: 'List of URL(s) to test'
9+
description: "List of URL(s) to test"
1010
required: true
1111
budget:
12-
description: 'Path to WebPageTest testspecs.json file'
12+
description: "Path to WebPageTest testspecs.json file"
1313
required: false
1414
label:
15-
description: 'Label for test (shows up in WebPageTest)'
15+
description: "Label for test (shows up in WebPageTest)"
1616
required: false
1717
wptOptions:
18-
description: 'Path to JSON file with WebPageTest test options (see https://github.com/marcelduran/webpagetest-api#test-works-for-runtest-method-only)'
18+
description: "Path to JSON file with WebPageTest test options (see https://github.com/marcelduran/webpagetest-api#test-works-for-runtest-method-only)"
1919
required: false
2020
GITHUB_TOKEN:
21-
description: 'Secret GitHub Token (automatically provided by GitHub)'
21+
description: "Secret GitHub Token (automatically provided by GitHub)"
2222
default: ${{ github.token }}
2323
runs:
24-
using: 'node12'
25-
main: 'index.js'
24+
using: "node12"
25+
main: "index.js"
2626
branding:
27-
icon: 'bar-chart-2'
28-
color: 'blue'
27+
icon: "bar-chart-2"
28+
color: "blue"

node_modules/.bin/_mocha

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/_mocha

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/ejs

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/ejs

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/flat

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/flat

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/he

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/he

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)