Skip to content

Commit a3edcac

Browse files
authored
Merge pull request #116 from wp-cli/fix/workflow-dispatch
2 parents 31e3d71 + 4a40243 commit a3edcac

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Testing
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
push:
67
branches:

features/export.feature

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Feature: Export content.
4040
"""
4141
And the return code should be 1
4242

43-
@require-wp-5.2
43+
@require-wp-5.2 @require-mysql
4444
Scenario: Export with post_type and post_status argument
4545
Given a WP install
4646

@@ -79,7 +79,7 @@ Feature: Export content.
7979
10
8080
"""
8181

82-
@require-wp-5.2
82+
@require-wp-5.2 @require-mysql
8383
Scenario: Export a comma-separated list of post types
8484
Given a WP install
8585

@@ -132,7 +132,7 @@ Feature: Export content.
132132
10
133133
"""
134134

135-
@require-wp-5.2
135+
@require-wp-5.2 @require-mysql
136136
Scenario: Export only one post
137137
Given a WP install
138138

@@ -204,7 +204,7 @@ Feature: Export content.
204204
2
205205
"""
206206

207-
@require-wp-5.2
207+
@require-wp-5.2 @require-mysql
208208
Scenario: Export multiple posts, separated by spaces
209209
Given a WP install
210210

@@ -237,7 +237,7 @@ Feature: Export content.
237237
2
238238
"""
239239

240-
@require-wp-5.2
240+
@require-wp-5.2 @require-mysql
241241
Scenario: Export multiple posts, separated by comma
242242
Given a WP install
243243

@@ -270,7 +270,7 @@ Feature: Export content.
270270
2
271271
"""
272272

273-
@require-wp-5.2
273+
@require-wp-5.2 @require-mysql
274274
Scenario: Export posts within a given date range
275275
Given a WP install
276276

@@ -311,7 +311,7 @@ Feature: Export content.
311311
10
312312
"""
313313

314-
@require-wp-5.2
314+
@require-wp-5.2 @require-mysql
315315
Scenario: Export posts from a given category
316316
Given a WP install
317317
And I run `wp site empty --yes`
@@ -393,7 +393,7 @@ Feature: Export content.
393393
Apple Post
394394
"""
395395

396-
@require-wp-5.2
396+
@require-wp-5.2 @require-mysql
397397
Scenario: Export posts from a given author
398398
Given a WP install
399399
And I run `wp site empty --yes`
@@ -476,7 +476,7 @@ Feature: Export content.
476476
john.doe@example.com
477477
"""
478478

479-
@require-wp-5.2
479+
@require-wp-5.2 @require-mysql
480480
Scenario: Export posts should include user information
481481
Given a WP install
482482
And I run `wp plugin install wordpress-importer --activate`
@@ -503,7 +503,7 @@ Feature: Export content.
503503
Test User
504504
"""
505505

506-
@require-wp-5.2
506+
@require-wp-5.2 @require-mysql
507507
Scenario: Export posts from a given starting post ID
508508
Given a WP install
509509

@@ -542,7 +542,7 @@ Feature: Export content.
542542
5
543543
"""
544544

545-
@require-wp-5.2
545+
@require-wp-5.2 @require-mysql
546546
Scenario: Exclude a specific post type from export
547547
Given a WP install
548548
And I run `wp site empty --yes`
@@ -605,6 +605,7 @@ Feature: Export content.
605605
0
606606
"""
607607

608+
@require-mysql
608609
Scenario: Export posts using --max_num_posts
609610
Given a WP install
610611
And I run `wp site empty --yes`
@@ -648,7 +649,7 @@ Feature: Export content.
648649
000.xml
649650
"""
650651

651-
@require-wp-5.2
652+
@require-wp-5.2 @require-mysql
652653
Scenario: Export a site and skip the comments
653654
Given a WP install
654655
And I run `wp comment generate --post_id=1 --count=2`
@@ -787,6 +788,7 @@ Feature: Export content.
787788
<wp:tag>
788789
"""
789790

791+
@require-mysql
790792
Scenario: Export without splitting the dump
791793
Given a WP install
792794
# Make export file > 15MB so will split by default. Need to split into 4 * 4MB to stay below 10% of default redo log size of 48MB, otherwise get MySQL error.
@@ -828,7 +830,7 @@ Feature: Export content.
828830
"""
829831
And STDERR should be empty
830832

831-
@require-wp-5.2
833+
@require-wp-5.2 @require-mysql
832834
Scenario: Export a site to stdout
833835
Given a WP install
834836
And I run `wp comment generate --post_id=1 --count=1`
@@ -882,7 +884,7 @@ Feature: Export content.
882884
"""
883885
And the return code should be 1
884886

885-
@require-wp-5.2
887+
@require-wp-5.2 @require-mysql
886888
Scenario: Export individual post with attachments
887889
Given a WP install
888890
And I run `wp plugin install wordpress-importer --activate`
@@ -974,7 +976,7 @@ Feature: Export content.
974976
white-150-square.jpg";s:
975977
"""
976978

977-
@require-wp-5.2
979+
@require-wp-5.2 @require-mysql
978980
Scenario: Export categories, tags and terms
979981
Given a WP install
980982
And a wp-content/mu-plugins/register-region-taxonomy.php file:
@@ -1139,7 +1141,7 @@ Feature: Export content.
11391141
Europe
11401142
"""
11411143

1142-
@require-wp-5.2
1144+
@require-wp-5.2 @require-mysql
11431145
Scenario: Export posts should not include oembed_cache posts user information
11441146
Given a WP install
11451147
And I run `wp plugin install wordpress-importer --activate`
@@ -1171,7 +1173,7 @@ Feature: Export content.
11711173
Test User
11721174
"""
11731175

1174-
@require-wp-5.2
1176+
@require-wp-5.2 @require-mysql
11751177
Scenario: Allow export to proceed when orphaned terms are found
11761178
Given a WP install
11771179
And I run `wp term create category orphan --parent=1`
@@ -1226,6 +1228,7 @@ Feature: Export content.
12261228
0
12271229
"""
12281230

1231+
@require-mysql
12291232
Scenario: Throw exception when orphaned terms are found
12301233
Given a WP install
12311234
And I run `wp term create category orphan --parent=1`
@@ -1235,4 +1238,4 @@ Feature: Export content.
12351238
Then STDERR should contain:
12361239
"""
12371240
Error: Term is missing a parent
1238-
"""
1241+
"""

0 commit comments

Comments
 (0)