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
@@ -10,64 +10,178 @@ It collects data from the `Server-Timing` header and runs Lighthouse on a given
10
10
11
11
## Usage
12
12
13
-
### Basic Example
14
-
15
-
Add a workflow (`.github/workflows/build-test.yml`):
13
+
See [action.yml](action.yml)
16
14
15
+
<!-- start usage -->
17
16
```yaml
18
-
name: 'build-test'
19
-
on: # rebuild any PRs and main branch changes
20
-
pull_request:
21
-
push:
22
-
branches:
23
-
- main
24
-
- 'releases/*'
17
+
- uses: swissspidy/wp-performance-action@main
18
+
with:
19
+
# Personal access token (PAT) used to comment on pull requests.
20
+
#
21
+
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
22
+
#
23
+
# Default: ${{ github.token }}
24
+
github-token: ''
25
+
26
+
# Whether to log additional debugging information
27
+
#
28
+
# Default: ${{ runner.debug == '1' }}
29
+
debug: ''
30
+
31
+
# List of URLs on the WordPress site to test.
32
+
# Each URL should be separated with new lines.
33
+
#
34
+
# Default: ''
35
+
urls: ''
36
+
37
+
# List of plugins to install.
38
+
# Each plugin should be separated with new lines.
39
+
# Supports paths to local directories or ZIP URLs.
40
+
# Performance Lab (performance-lab) is always installed.
41
+
#
42
+
# Default: ''
43
+
plugins: ''
44
+
45
+
# List of themes to install.
46
+
# Each theme should be separated with new lines.
47
+
# Supports paths to local directories or ZIP URLs.
48
+
# Twenty Twenty-One (twentytwentyone) and Twenty Twenty-Three (twentytwentythree)
49
+
# are always installed.
50
+
#
51
+
# Default: ''
52
+
themes: ''
53
+
54
+
# Theme to activate on the site.
55
+
# Theme needs to be already installed.
56
+
#
57
+
# Default: 'twentytwentyone'
58
+
active-theme: ''
59
+
60
+
# WordPress version to use.
61
+
# Supports aliases such as latest, nightly, or trunk.
62
+
# Also supports ZIP URLs or a Git reference from https://github.com/WordPress/wordpress
63
+
# to install a specific version.
64
+
#
65
+
# Default: 'latest'
66
+
wp-version: ''
67
+
68
+
# PHP version to use.
69
+
# Defaults to whatever version is the default
70
+
# in the Docker-maintained WordPress image
71
+
# (currently 8.0 as of November 2023)
72
+
#
73
+
# Default: 'auto'
74
+
php-version: ''
75
+
76
+
# Number of times the tests should be repeated.
77
+
#
78
+
# Default: 2
79
+
repetitions: ''
80
+
81
+
# Number of iterations (loops) within a single run.
82
+
#
83
+
# Default: 20
84
+
iterations: ''
85
+
86
+
# Shard to use if running tests in parallel.
87
+
# Valid values are 1/2, 1/4, etc.
88
+
#
89
+
# Default: ''
90
+
shard: ''
91
+
92
+
93
+
# Action to perform, can be either "test" or "merge".
94
+
# Merging is needed when running tests in parallel
95
+
# in a test matrix, where you later need to merge
96
+
# the results from the individual jobs together.
97
+
#
98
+
# Default: 'test'
99
+
action: ''
100
+
101
+
# Path to a file with previous performance results for comparison.
102
+
# Useful when running tests for a pull request and
103
+
# the target branch, so that the performance impact can be measured.
104
+
#
105
+
# Default: ''
106
+
previous-results: ''
25
107
26
-
jobs:
27
-
test:
28
-
runs-on: ubuntu-latest
29
-
steps:
30
-
- name: Checkout
31
-
uses: actions/checkout@v3
108
+
```
109
+
<!-- end usage -->
32
110
33
-
- name: Set up Node
34
-
uses: actions/setup-node@v3.7.0
35
-
with:
36
-
node-version-file: '.nvmrc'
111
+
### Basic
37
112
38
-
- name: Install dependencies
39
-
run: npm ci
113
+
Add a workflow (`.github/workflows/build-test.yml`):
40
114
41
-
# Here's where you would install dependencies, run your custom build process, etc.
0 commit comments