feat: generate GitHub Actions configuration

Generate a GitHub Actions workflow file if a project is opted-in for
this feature.

Refs: OD-29
This commit is contained in:
Oliver Davies 2023-04-21 01:39:03 +01:00
parent 4bf72b59e3
commit 02c8b41194
4 changed files with 57 additions and 2 deletions

View file

@ -203,6 +203,14 @@ function getFiles(array $configurationData): Collection
$filesToGenerate[] = new TemplateFile(data: 'drupal-project/phpunit.xml.dist', name: 'phpunit.xml.dist');
}
if (Arr::get($configurationData, 'experimental.createGitHubActionsConfiguration', false) === true) {
$filesToGenerate[] = new TemplateFile(
data: 'ci/github-actions/ci.yml',
name: 'ci.yml',
path: '.github/workflows',
);
}
return $filesToGenerate;
}