From 8e1e0b7f2f8647c8ac53d3c855300c76be642252 Mon Sep 17 00:00:00 2001 From: Pablo Lopez Date: Thu, 26 Sep 2024 13:14:48 +0200 Subject: [PATCH 1/2] Do not force to scaffold Nightwatch.gitlab-ci .yml --- src/ScaffoldInstallerPlugin.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ScaffoldInstallerPlugin.php b/src/ScaffoldInstallerPlugin.php index 21b5b2efc..3436ef506 100644 --- a/src/ScaffoldInstallerPlugin.php +++ b/src/ScaffoldInstallerPlugin.php @@ -261,9 +261,6 @@ private function installGitlabCI(string $scaffoldPath): void { $this->io->write("🪠 [Drainpipe] .drainpipe/gitlab/Common.gitlab-ci.yml installed"); } - $fs->copy("$scaffoldPath/gitlab/Nightwatch.gitlab-ci.yml", ".drainpipe/gitlab/Nightwatch.gitlab-ci.yml"); - $this->io->write("🪠 [Drainpipe] .drainpipe/gitlab/Nightwatch.gitlab-ci.yml installed"); - foreach ($this->extra['drainpipe']['gitlab'] as $gitlab) { $file = "gitlab/$gitlab.gitlab-ci.yml"; if (file_exists("$scaffoldPath/$file")) {$fs->ensureDirectoryExists('./.drainpipe/gitlab'); From d701c7aa8c6ba5e833cd44c996224313e4e82820 Mon Sep 17 00:00:00 2001 From: Pablo Lopez Date: Mon, 25 Nov 2024 15:51:42 +0100 Subject: [PATCH 2/2] Add basic documentation for the Nightwatch Gitlab CI integration --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index c623240b4..a7df81681 100644 --- a/README.md +++ b/README.md @@ -554,6 +554,19 @@ include which will give you helpers that you can include and reference for tasks such as setting up [Terminus](https://pantheon.io/docs/terminus). See [scaffold/gitlab/Pantheon.gitlab-ci.yml](scaffold/gitlab/Pantheon.gitlab-ci.yml). +### Nightwatch +Provides basic integration for Nightwatch Visual Regression Testing. + +```json +"extra": { + "drainpipe": { + "gitlab": ["Nightwatch"] + } +} +``` + +See [scaffold/gitlab/Nightwatch.gitlab-ci.yml](scaffold/gitlab/Nightwatch.gitlab-ci.yml). + ## Tugboat Add the following to `composer.json` to add Tugboat configuration: