mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-04 09:58:57 +00:00
* 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).
28 lines
856 B
JavaScript
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();
|