You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+71-21Lines changed: 71 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,11 @@ A GitHub action to measure performance metrics of WordPress sites.
4
4
5
5
Results are posted as comments to pull requests and as [GitHub Action job summaries](https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/).
6
6
7
-
It collects data from the `Server-Timing` header and runs Lighthouse on a given set of URLs.
7
+
It collects data from the `Server-Timing` header and runs Lighthouse on a given set of URLs.
8
+
9
+
**Note:** Tests are run using [WordPress Playground](https://wordpress.org/playground/), which means you can use [blueprints](https://wordpress.github.io/wordpress-playground/blueprints) to prepare the test environment suitable to your needs.
10
+
11
+
## Example
8
12
9
13
<imgwidth="1154"alt="Screenshot of a GitHub Action job summary output by this action"src="https://github.com/swissspidy/wp-performance-action/assets/841956/bb543ba2-a142-49d5-bb45-77d11f121824">
10
14
@@ -24,59 +28,78 @@ See [action.yml](action.yml)
24
28
github-token: ''
25
29
26
30
# Whether to create PR comments with performance results.
31
+
#
27
32
# Might require a custom `github-token` to be set.
28
33
#
29
34
# Default: false
30
35
create-comment: ''
31
36
37
+
# Whether to add results to the workflow summary.
38
+
#
39
+
# Default: true
40
+
print-results: ''
41
+
42
+
# Whether to upload any artifacts.
43
+
#
44
+
# Default: true
45
+
upload-artifacts: ''
46
+
32
47
# Whether to log additional debugging information
33
48
#
34
49
# Default: ${{ runner.debug == '1' }}
35
50
debug: ''
36
51
37
52
# List of URLs on the WordPress site to test.
53
+
#
38
54
# Each URL should be separated with new lines.
39
55
#
40
56
# Default: ''
41
57
urls: ''
42
58
43
-
# List of plugins to install.
59
+
# List of plugin directories to mount.
60
+
#
44
61
# Each plugin should be separated with new lines.
45
-
# Supports paths to local directories or ZIP URLs.
46
-
# Performance Lab (performance-lab) is always installed.
62
+
# Needs to be a path to a local directory.
63
+
# For installing plugins from the plugin directory
64
+
# or a ZIP file, use a blueprint.
47
65
#
48
66
# Default: ''
49
67
plugins: ''
50
68
51
-
# List of themes to install.
69
+
# List of theme directories to mount.
70
+
#
52
71
# Each theme should be separated with new lines.
53
-
#Supports paths to local directories or ZIP URLs.
54
-
#Twenty Twenty-One (twentytwentyone) and Twenty Twenty-Three (twentytwentythree)
55
-
#are always installed.
72
+
#Needs to be a path to a local directory.
73
+
#For installing themes from the theme directory
74
+
#or a ZIP file, use a blueprint.
56
75
#
57
76
# Default: ''
58
77
themes: ''
59
78
60
-
# Theme to activate on the site.
61
-
# Theme needs to be already installed.
79
+
# Blueprint to use for setting up the environment.
80
+
#
81
+
# Use this to install or activate additional plugins, defining constants,
82
+
# and much more.
62
83
#
63
-
# Default: 'twentytwentyone'
64
-
active-theme: ''
84
+
# See https://wordpress.github.io/wordpress-playground/blueprints for more information.
85
+
#
86
+
# Default: ''
87
+
blueprint: ''
65
88
66
89
# WordPress version to use.
67
-
# Supports aliases such as latest, nightly, or trunk.
68
-
# Also supports ZIP URLs or a Git reference from https://github.com/WordPress/wordpress
69
-
# to install a specific version.
90
+
#
91
+
# Loads the specified WordPress version.
92
+
# Accepts the last four major WordPress versions.
93
+
# You can also use the generic values 'latest', 'nightly', or 'beta'.
0 commit comments