Skip to content

Commit 45509e0

Browse files
committed
Test.
1 parent 8c9a89f commit 45509e0

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

.github/workflows/scaffold-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ jobs:
6767
path: ./.scaffold/.coverage-html
6868
if-no-files-found: error
6969

70+
- name: Upload coverage report to Codecov
71+
uses: codecov/codecov-action@v4
72+
if: ${{ env.CODECOV_TOKEN != '' }}
73+
with:
74+
directory: ./.scaffold/.coverage-html
75+
fail_ci_if_error: true
76+
token: ${{ secrets.CODECOV_TOKEN }}
77+
env:
78+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
79+
7080
scaffold-test-actions:
7181
runs-on: ubuntu-latest
7282

.scaffold/Customizer.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,21 @@ public function process(): void {
119119
* Display summary input.
120120
*/
121121
protected function displaySummary(): void {
122-
$this->io->notice(' Summary');
123-
$this->io->notice('---------------------------------');
124-
$this->io->notice('Name : ' . $this->extensionName);
125-
$this->io->notice('Machine name : ' . $this->extensionMachineName);
126-
$this->io->notice('Type : ' . $this->extensionType);
127-
$this->io->notice('CI Provider : ' . $this->ciProvider);
128-
$this->io->notice('Command wrapper : ' . $this->commandWrapper);
129-
$this->io->notice('Working dir : ' . $this->workingDir);
122+
$this->io->write(' Summary');
123+
$this->io->write('---------------------------------');
124+
$this->io->write('Name : ' . $this->extensionName);
125+
$this->io->write('Machine name : ' . $this->extensionMachineName);
126+
$this->io->write('Type : ' . $this->extensionType);
127+
$this->io->write('CI Provider : ' . $this->ciProvider);
128+
$this->io->write('Command wrapper : ' . $this->commandWrapper);
129+
$this->io->write('Working dir : ' . $this->workingDir);
130130
}
131131

132132
/**
133133
* Process README.md.
134134
*/
135135
protected function processReadme(): void {
136-
$this->io->notice('Processing README.');
136+
$this->io->write('Processing README.');
137137
$this->fileSystem->remove($this->workingDir . '/README.md');
138138
$this->fileSystem->rename($this->workingDir . '/README.dist.md', $this->workingDir . '/README.md');
139139
$logo_url = sprintf(
@@ -163,7 +163,7 @@ protected function processComposer(): void {
163163
* @throws \Exception
164164
*/
165165
protected function processInternalReplacement(): void {
166-
$this->io->notice('Processing internal replacement.');
166+
$this->io->write('Processing internal replacement.');
167167

168168
$extension_machine_name_class = self::convertString($this->extensionMachineName, 'class_name');
169169

@@ -253,7 +253,7 @@ protected function processInternalReplacement(): void {
253253
* Remove CI provider depends on CI provider selected.
254254
*/
255255
protected function removeCiProvider(): void {
256-
$this->io->notice('Processing remove CI Provider.');
256+
$this->io->write('Processing remove CI Provider.');
257257
$ci_provider = $this->ciProvider;
258258
if ($ci_provider === 'gha') {
259259
$this->removeCircleciCiProvider();
@@ -281,7 +281,7 @@ protected function removeGhaCiProvider(): void {
281281
* Remove command wrappers depends on command wrapper selected.
282282
*/
283283
protected function removeCommandWrapper(): void {
284-
$this->io->notice('Processing remove Command Wrapper.');
284+
$this->io->write('Processing remove Command Wrapper.');
285285
$command_wrapper = $this->commandWrapper;
286286
switch ($command_wrapper) {
287287
case 'ahoy':
@@ -327,7 +327,7 @@ public static function main(Event $event): void {
327327
$default_extension_ci_provider = getenv('DRUPAL_EXTENSION_SCAFFOLD_CI_PROVIDER') !== FALSE ? getenv('DRUPAL_EXTENSION_SCAFFOLD_CI_PROVIDER') : 'gha';
328328
$default_extension_command_wrapper = getenv('DRUPAL_EXTENSION_SCAFFOLD_COMMAND_WRAPPER') !== FALSE ? getenv('DRUPAL_EXTENSION_SCAFFOLD_COMMAND_WRAPPER') : 'ahoy';
329329

330-
$io->notice('Please follow the prompts to adjust your extension configuration');
330+
$io->write('Please follow the prompts to adjust your extension configuration');
331331

332332
$extension_name = $io->ask('Name: ', $default_extension_name);
333333
$default_extension_machine_name = getenv('DRUPAL_EXTENSION_SCAFFOLD_MACHINE_NAME') !== FALSE ?
@@ -380,7 +380,7 @@ public static function main(Event $event): void {
380380
throw new \Exception(sprintf('Initialization is not completed. Error %s', $exception->getMessage()), $exception->getCode(), $exception);
381381
}
382382

383-
$io->notice('Initialization complete.');
383+
$io->write('Initialization complete.');
384384
}
385385

386386
/**

0 commit comments

Comments
 (0)