diff --git a/tests/integration/repo_config/workflow_scripts_test.ts b/tests/integration/repo_config/workflow_scripts_test.ts new file mode 100644 index 000000000..cef178f05 --- /dev/null +++ b/tests/integration/repo_config/workflow_scripts_test.ts @@ -0,0 +1,167 @@ +/** + * @license + * Copyright 2026 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +import * as fs from 'node:fs/promises'; +import * as path from 'node:path'; +import {fileURLToPath} from 'node:url'; +import {describe, expect, it} from 'vitest'; +import rootPackage from '../../../package.json' with {type: 'json'}; + +const WORKFLOWS_DIR = path.resolve( + path.dirname(fileURLToPath(import.meta.url)), + '../../../.github/workflows', +); + +/** A GitHub Actions workflow file: `.yml` or `.yaml`. */ +const WORKFLOW_FILE_PATTERN = /\.ya?ml$/; + +/** `npm run