Skip to content

Commit

Permalink
Fixed installer not removing internal DrevOps GHAs.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Feb 5, 2024
1 parent ec5416b commit 0cd7e2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .drevops/installer/src/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ protected function processDrevopsInternal(string $dir) {
static::rmdirRecursive($dir . '/.drevops/tests');
static::rmdirRecursive($dir . '/scripts/drevops/utils');
@unlink($dir . '/.github/FUNDING.yml');
foreach (glob($dir . '/.github/drevops-*.yml') as $file) {
foreach (glob($dir . '/.github/workflows/drevops-*.yml') as $file) {
@unlink($file);
}

Expand Down
5 changes: 5 additions & 0 deletions .drevops/tests/bats/_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,12 @@ assert_files_present_drevops() {
assert_dir_not_exists ".drevops"
assert_file_not_exists "LICENSE"
assert_file_not_exists ".github/FUNDING.yml"

assert_file_not_exists ".github/drevops-publish-docs.yml"
assert_file_not_exists ".github/drevops-publish-installer.yml"
assert_file_not_exists ".github/drevops-test-docs.yml"
assert_file_not_exists ".github/drevops-test-installer.yml"

assert_file_not_contains ".circleci/config.yml" "drevops-dev-test"
assert_file_not_contains ".circleci/config.yml" "drevops-dev-test-workflow"
assert_file_not_contains ".circleci/config.yml" "drevops-dev-test-deployment"
Expand Down

0 comments on commit 0cd7e2f

Please sign in to comment.