зеркало из
1
0
Форкнуть 0
communication-ui-library/common/scripts/workflow-read-matrix.mjs

24 строки
726 B
JavaScript

#!/usr/bin/env node
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This script is used by GitHub workflows to parse and marshal the build matrix
* to be tested.
*
* On the `main` branch, all build flavors are tested.
* On release branches, the build matrix is restricted to the relevant flavor.
*
* See also `common/scripts/force-build-flavor.mjs`.
*/
import { REPO_ROOT } from './lib/index.mjs';
import { readFileSync } from 'fs';
import path from 'path';
const MATRIX_JSON = path.join(REPO_ROOT, 'common', 'config', 'workflows', 'matrix.json');
const text = readFileSync(MATRIX_JSON, 'utf8');
const denseText = JSON.stringify(JSON.parse(text), null, 0);
console.log(denseText);