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: .github/workflows/reusable-phpunit-tests-v3.yml
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,16 @@ on:
72
72
required: false
73
73
type: boolean
74
74
default: false
75
+
gutenberg-artifact:
76
+
description: 'The name of a same-workflow artifact containing the prepared Gutenberg build. Optional: callers that omit it download Gutenberg per job.'
77
+
required: false
78
+
type: string
79
+
default: ''
80
+
gutenberg-sha:
81
+
description: 'The immutable Gutenberg source SHA verified by the calling workflow.'
82
+
required: false
83
+
type: string
84
+
default: ''
75
85
secrets:
76
86
CODECOV_TOKEN:
77
87
description: 'The Codecov token required for uploading reports.'
@@ -101,6 +111,7 @@ jobs:
101
111
# Performs the following steps:
102
112
# - Sets environment variables.
103
113
# - Checks out the repository.
114
+
# - Downloads the prepared Gutenberg build provided by the calling workflow.
npm run test:php -- --group <group name or ticket number>
98
98
```
99
99
100
+
To run the JavaScript (QUnit) tests:
101
+
102
+
```
103
+
npm run grunt qunit:compiled
104
+
```
105
+
106
+
`qunit:compiled` builds first, then runs the suite. The QUnit runner loads
107
+
scripts from the built `build/` directory, so a plain `npm run grunt qunit`
108
+
requires a completed `npm run build` first without a build, every test fails
109
+
with a `jQuery is not defined` error.
110
+
100
111
#### To lint the workflow files
101
112
102
113
GitHub Actions workflows operate in a privileged software supply chain environment, therefore all workflow files must adhere to a high degree of quality and security standards.
0 commit comments