Repository navigation
Expand file tree
/
Copy pathunit-tests-suites.yml
More file actions
155 lines (138 loc) · 4.48 KB
/
Copy pathunit-tests-suites.yml
File metadata and controls
155 lines (138 loc) · 4.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Unit test suite definitions.
#
# Single source of truth for the `changes` job in
# .github/workflows/unit-tests.yml: each suite declares its job matrix
# configuration and the paths that can break it. The workflow generates the
# path filters and the job matrices from this file, and only runs the suites
# whose paths match a changed file.
#
# To add a suite, add one entry under `suites`:
# type: standalone (plain PHPUnit) or wordpress (wp-env/Docker).
# name: display name in the job list.
# paths: globs of the files the suite tests or loads — include every
# cross-directory dependency its bootstrap pulls in. The shared
# paths for the suite's type are added automatically, and so are
# the plugins a wordpress suite's environment activates (read from
# environments/<suite>/.wp-env.test.json by the workflow).
# All other keys are passed through to the job matrix as-is.
# Changes that affect every suite of a type.
shared-paths:
# PHPUnit and the polyfills are installed from the root composer manifest.
standalone:
- '.github/workflows/unit-tests.yml'
- '.github/unit-tests-suites.yml'
- 'composer.json'
- 'composer.lock'
wordpress:
- '.github/workflows/unit-tests.yml'
- '.github/unit-tests-suites.yml'
- 'environments/package.json'
- 'environments/package-lock.json'
- 'environments/.nvmrc'
suites:
serve-happy:
type: standalone
name: Serve Happy API
working-directory: api.wordpress.org/public_html/core/serve-happy/1.0
paths:
- 'api.wordpress.org/public_html/core/serve-happy/**'
- 'wordpress.org/public_html/wp-content/mu-plugins/pub/servehappy-config.php'
browse-happy:
type: standalone
name: Browse Happy API
working-directory: api.wordpress.org/public_html/core/browse-happy/1.0
paths:
- 'api.wordpress.org/public_html/core/browse-happy/**'
events:
type: standalone
name: Events API
working-directory: api.wordpress.org/public_html/events/1.0
paths:
- 'api.wordpress.org/public_html/events/1.0/**'
trac-pr:
type: standalone
name: Trac PR Syncer
working-directory: api.wordpress.org/public_html/dotorg/trac/pr
paths:
- 'api.wordpress.org/public_html/dotorg/trac/pr/**'
freescout-api:
type: standalone
name: FreeScout API
working-directory: api.wordpress.org/public_html/dotorg/freescout
paths:
- 'api.wordpress.org/public_html/dotorg/freescout/**'
slack-trac:
type: standalone
name: Slack Trac Bot
working-directory: common/includes/tests/slack/trac
phpunit-args: --no-configuration bot.php
paths:
- 'common/includes/slack/**'
- 'common/includes/tests/slack/**'
slack-props:
type: standalone
name: Slack Props Library
working-directory: common/includes/slack/props/tests
phpunit-args: --no-configuration --bootstrap /tmp/phpunit-bootstrap.php .
bootstrap: wpdb-stub
paths:
- 'common/includes/slack/props/**'
handbook:
type: wordpress
name: Handbook Plugin
script: handbook:test
paths:
- 'environments/handbook/**'
plugin-directory:
type: wordpress
name: Plugin Directory
script: plugins:test
paths:
- 'environments/plugin-directory/**'
theme-directory:
type: wordpress
name: Theme Directory
script: themes:test
paths:
- 'environments/theme-directory/**'
jobs:
type: wordpress
name: Jobs
script: jobs:test
paths:
- 'environments/jobs/**'
make:
type: wordpress
name: Make
script: make:test
paths:
- 'environments/make/**'
# Mounted for its suite but not activated, so not read from the environment's plugin list.
- 'wordpress.org/public_html/wp-content/plugins/wporg-badge-management/**'
openverse:
type: wordpress
name: Openverse Theme
script: openverse:test
paths:
- 'environments/openverse/**'
- 'wordpress.org/public_html/wp-content/themes/pub/wporg-openverse/**'
translate:
type: wordpress
name: Translation Events
script: translate:test
paths:
- 'environments/translate/**'
support-forums:
type: wordpress
name: Support Forums
script: support:test
paths:
- 'environments/support-forums/**'
sso:
type: wordpress
name: WordPress.org SSO
script: sso:test
paths:
- 'environments/sso/**'
# Mounted for its suite but not activated, so not read from the environment's plugin list.
- 'common/includes/wporg-sso/**'