mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-05 10:55:33 +01:00
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:
parent
4bf72b59e3
commit
02c8b41194
4 changed files with 57 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue