Skip to content

Commit

Permalink
Add behat file in the list of files to be copied scaffolding package …
Browse files Browse the repository at this point in the history
…tests
  • Loading branch information
ernilambar committed Apr 12, 2024
1 parent d9f6904 commit 0c7ecc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ScaffoldPackageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,8 @@ public function package_tests( $args, $assoc_args ) {
$copy_source[ $package_root ]['templates/load-wp-cli.feature'] = $features_dir;
}

$copy_source[ $package_root ]['behat.yml'] = $package_dir;

$travis_tags = [ 'cache', 'env', 'matrix', 'before_install', 'install', 'before_script', 'script' ];
$travis_tag_overwrites = [];
$travis_tag_appends = [];
Expand All @@ -698,7 +700,6 @@ public function package_tests( $args, $assoc_args ) {
$copy_source[ $package_root ]['.circleci/config.yml'] = $package_dir . '.circleci/';
} elseif ( 'github' === $assoc_args['ci'] ) {
$copy_source[ $package_root ]['templates/testing.yml'] = $package_dir . '.github/workflows/';
$copy_source[ $package_root ]['behat.yml'] = $package_dir;
}

$files_written = [];
Expand Down

0 comments on commit 0c7ecc8

Please sign in to comment.