mattermost-mobile-upstream/detox/save_maestro_zephyr.js
yasser khan e83c44959d
feat(e2e): Run e2e against different server version when rc branch is pushed (#9800)
* ci(e2e): scheduled CMT trigger, fix push double-fire, drop cleanup call

Aligns mobile E2E workflows with matterwick's webhook-driven model:

- cmt-provisioner.yml: replace the old stub (which relied on the dead
  workflow_run-inputs path) with a lightweight monthly scheduled trigger
  (no inputs). matterwick provisions servers for its hardcoded version set
  and dispatches compatibility-matrix-testing.yml.

- compatibility-matrix-testing.yml: remove the /cleanup_e2e curl step;
  matterwick destroys servers on the workflow_run completed event (SHA match).
2026-07-07 18:02:13 +05:30

28 lines
856 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable no-console, no-process-env */
/* Publish Maestro JUnit to Zephyr Scale (npm run e2e:save-maestro-zephyr). Requires ZEPHYR_ENABLE=true and Zephyr env vars. */
const path = require('path');
require('dotenv').config();
const {saveMaestroTestCases} = require('./utils/maestro_test_cases');
const saveMaestroZephyr = async () => {
const {ZEPHYR_ENABLE} = process.env;
if (ZEPHYR_ENABLE !== 'true') {
console.log('Maestro Zephyr: skipped (ZEPHYR_ENABLE is not true)');
return;
}
const xmlPath = process.argv[2] || path.join(__dirname, '../build/maestro-report.xml');
const repoRoot = path.join(__dirname, '..');
await saveMaestroTestCases(xmlPath, repoRoot);
};
saveMaestroZephyr();