Skip to content

Commit

Permalink
enable vue in devserver workflow (#27616)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Oct 18, 2024
1 parent 7d16426 commit c1727a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .blueprint/github-build-matrix/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ export default class extends BaseGenerator {
if (this.workflow === 'docker-compose-integration') {
setGithubTaskOutput('matrix', JSON.stringify(convertToGitHubMatrix(dockerComposeMatrix), null, 2));
} else if (this.workflow === 'dev-server') {
const { devserverCi, client, angular, react, vue } = await getGitChanges();
const { devBlueprint, devserverCi, client, angular, react, vue } = await getGitChanges();
const matrix = {};
if (devserverCi || client || angular) {
if (devBlueprint || devserverCi || client || angular) {
// Object.assign(matrix, devServerMatrix.angular);
}
if (devserverCi || client || react) {
if (devBlueprint || devserverCi || client || react) {
Object.assign(matrix, devServerMatrix.react);
}
if (devserverCi || client || vue) {
// Object.assign(matrix, devServerMatrix.vue);
if (devBlueprint || devserverCi || client || vue) {
Object.assign(matrix, devServerMatrix.vue);
}
const githubMatrix = convertToGitHubMatrix(matrix);
setGithubTaskOutput('matrix', JSON.stringify(githubMatrix, null, 2));
Expand Down
6 changes: 2 additions & 4 deletions .blueprint/github-build-matrix/support/git-changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ export const getGitChanges = async () => {
hasPatternChanges('lib/**') ||
hasPatternChanges('generators/*') ||
hasPatternChanges('generators/{base*,bootstrap*,git,jdl,project-name}/**'),
ci:
hasPatternChanges('.blueprint/**') ||
hasPatternChanges('.github/{actions,workflows}/**') ||
hasPatternChanges('generators/{docker-compose,kubernetes*,workspaces}/**'),
devBlueprint: hasPatternChanges('.blueprint/**'),
ci: hasPatternChanges('.github/{actions,workflows}/**') || hasPatternChanges('generators/{docker-compose,kubernetes*,workspaces}/**'),
devserverCi: hasPatternChanges('.github/workflows/devserver.yml'),
common: hasPatternChanges('generators/{app,common,cypress,docker,languages}/**'),
client: hasPatternChanges('generators/{client,init,javascript}/**'),
Expand Down

0 comments on commit c1727a4

Please sign in to comment.