mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-20 03:16:46 -07:00
- add `verify:config-example` script with tests to fail on missing/stale generated config artifacts - run the verification in CI and release workflows, and document it in release/docs guidance - fix docs-site Cloudflare Pages watch path to `docs-site/*` with regression coverage
21 lines
726 B
TypeScript
21 lines
726 B
TypeScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { readFileSync } from 'node:fs';
|
|
import { resolve } from 'node:path';
|
|
|
|
const ciWorkflowPath = resolve(__dirname, '../.github/workflows/ci.yml');
|
|
const ciWorkflow = readFileSync(ciWorkflowPath, 'utf8');
|
|
|
|
test('ci workflow lints changelog fragments', () => {
|
|
assert.match(ciWorkflow, /bun run changelog:lint/);
|
|
});
|
|
|
|
test('ci workflow checks pull requests for required changelog fragments', () => {
|
|
assert.match(ciWorkflow, /bun run changelog:pr-check/);
|
|
assert.match(ciWorkflow, /skip-changelog/);
|
|
});
|
|
|
|
test('ci workflow verifies generated config examples stay in sync', () => {
|
|
assert.match(ciWorkflow, /bun run verify:config-example/);
|
|
});
|