Skip to content

Commit b52a726

Browse files
committed
Add deprecation warning for Maestro 1.39.2 & 1.39.7
1 parent ef7937f commit b52a726

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

dist/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30024,6 +30024,11 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
3002430024
var _a;
3002530025
try {
3002630026
const { additionalAppBinaryIds, additionalAppFiles, androidApiLevel, androidDevice, apiKey, apiUrl, appBinaryId, appFilePath, async, config, deviceLocale, downloadArtifacts, env, excludeFlows, excludeTags, googlePlay, ignoreShaCheck, includeTags, iOSVersion, iosDevice, jsonFile, maestroVersion, name, orientation, report, retry, workspaceFolder, runnerType, debug, moropoV1ApiKey, useBeta, maestroChromeOnboarding, androidNoSnapshot, enableAnimations, } = yield (0, params_1.getParameters)();
30027+
const DEPRECATED_MAESTRO_VERSIONS = ['1.39.2', '1.39.7'];
30028+
if (maestroVersion && DEPRECATED_MAESTRO_VERSIONS.includes(maestroVersion)) {
30029+
(0, core_1.warning)(`Maestro version ${maestroVersion} is deprecated and will be removed soon. ` +
30030+
`Please upgrade to a newer version. See: https://docs.devicecloud.dev/reference/maestro-versions`);
30031+
}
3002730032
const dcdVersionString = yield getLatestDcdVersion(useBeta);
3002830033
const params = {
3002930034
'additional-app-binary-ids': additionalAppBinaryIds,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dcd-github-action",
33
"description": "run maestro tests on devicecloud.dev",
44
"author": "devicecloud.dev",
5-
"version": "2.0.9",
5+
"version": "2.0.10",
66
"main": "src/index.ts",
77
"license": "MIT",
88
"engines": {

src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { setFailed, setOutput } from '@actions/core';
1+
import { setFailed, setOutput, warning } from '@actions/core';
22
import { getParameters } from './methods/params';
33
import { spawn } from 'child_process';
44

@@ -158,6 +158,14 @@ const run = async (): Promise<void> => {
158158
enableAnimations,
159159
} = await getParameters();
160160

161+
const DEPRECATED_MAESTRO_VERSIONS = ['1.39.2', '1.39.7'];
162+
if (maestroVersion && DEPRECATED_MAESTRO_VERSIONS.includes(maestroVersion)) {
163+
warning(
164+
`Maestro version ${maestroVersion} is deprecated and will be removed soon. ` +
165+
`Please upgrade to a newer version. See: https://docs.devicecloud.dev/reference/maestro-versions`
166+
);
167+
}
168+
161169
const dcdVersionString = await getLatestDcdVersion(useBeta);
162170

163171
const params: Record<string, any> = {

0 commit comments

Comments
 (0)