@devicecloud.dev/dcd 3.7.6 → 3.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/cloud.js +2 -3
- package/dist/plan.js +23 -4
- package/dist/planMethods.js +8 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/commands/cloud.js
CHANGED
|
@@ -137,9 +137,8 @@ class Cloud extends core_1.Command {
|
|
|
137
137
|
if (debug) {
|
|
138
138
|
this.log('DEBUG: Moropo v1 API key detected, downloading tests from Moropo API');
|
|
139
139
|
}
|
|
140
|
-
const branchName = process.env.GITHUB_REF_NAME || 'main';
|
|
141
140
|
if (debug) {
|
|
142
|
-
this.log(`DEBUG: Using branch name:
|
|
141
|
+
this.log(`DEBUG: Using branch name: main`);
|
|
143
142
|
}
|
|
144
143
|
try {
|
|
145
144
|
if (!quiet && !json) {
|
|
@@ -151,7 +150,7 @@ class Cloud extends core_1.Command {
|
|
|
151
150
|
headers: {
|
|
152
151
|
accept: 'application/zip',
|
|
153
152
|
'x-app-api-key': moropoApiKey,
|
|
154
|
-
'x-branch-name':
|
|
153
|
+
'x-branch-name': 'main',
|
|
155
154
|
},
|
|
156
155
|
});
|
|
157
156
|
if (!response.ok) {
|
package/dist/plan.js
CHANGED
|
@@ -99,10 +99,29 @@ async function plan(input, includeTags, excludeTags, excludeFlows, configFile) {
|
|
|
99
99
|
});
|
|
100
100
|
// overwrite the list of files with the globbed ones
|
|
101
101
|
unfilteredFlowFiles = matchedFiles
|
|
102
|
-
.filter((file) =>
|
|
103
|
-
|
|
104
|
-
(
|
|
105
|
-
|
|
102
|
+
.filter((file) => {
|
|
103
|
+
// Exclude config files
|
|
104
|
+
if (file === 'config.yaml' || file === 'config.yml') {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
// Exclude config file if specified
|
|
108
|
+
if (configFile && file === path.basename(configFile)) {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
// Check file extension
|
|
112
|
+
if (!file.endsWith('.yaml') && !file.endsWith('.yml')) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
// Exclude files inside .app bundles
|
|
116
|
+
// Check if any directory in the path ends with .app
|
|
117
|
+
const pathParts = file.split(path.sep);
|
|
118
|
+
for (const part of pathParts) {
|
|
119
|
+
if (part.endsWith('.app')) {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return true;
|
|
124
|
+
})
|
|
106
125
|
.map((file) => path.resolve(normalizedInput, file));
|
|
107
126
|
}
|
|
108
127
|
else {
|
package/dist/planMethods.js
CHANGED
|
@@ -32,6 +32,14 @@ function getFlowsToRunInSequence(paths, flowOrder) {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
function isFlowFile(filePath) {
|
|
35
|
+
// Exclude files inside .app bundles
|
|
36
|
+
// Check if any directory in the path ends with .app
|
|
37
|
+
const pathParts = filePath.split(path.sep);
|
|
38
|
+
for (const part of pathParts) {
|
|
39
|
+
if (part.endsWith('.app')) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
35
43
|
return filePath.endsWith('.yaml') || filePath.endsWith('.yml');
|
|
36
44
|
}
|
|
37
45
|
const readYamlFileAsJson = (filePath) => {
|
package/oclif.manifest.json
CHANGED