IF Commons GitHub

generate-workflows

The workflows of this repository, written from the typed model (commons 0030-generated-workflows FR-001, FR-004, FR-006, FR-008): every file under .github/workflows/ is <name>.auto.yml and made here, and so is .github/actions/bun/action.yml, whose name GitHub fixes.

bun commons/libraries/src/generate-workflows.ts write the files that are not what the model makes bun commons/libraries/src/generate-workflows.ts --check write nothing and exit 1 where a file is not what the model makes, where a workflow is written by hand, or where the model has a finding other flags: --repo DIR (the repository, the working folder by default)

The workflow of each library of commons is made from its manifest (commons/<name>/library.ts, 0027-commons-libraries FR-012) and the facts of its CI that the manifest does not hold (LIBRARY_CI of workflows/definitions.ts); the others are written as values there. A file that is not .auto.yml in the workflows' folder, and a generated file that no workflow makes, are findings (nothing is deleted). Line ends are not compared: a Windows checkout of a file is the file.

Source: commons/libraries/src/generate-workflows.ts

2 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

outputsfunction
function outputs(repo: string): { readonly files: ReadonlyMap<string, string>; readonly problems: readonly string[]; }

The files the model makes, by their path from the repository's root, and what is wrong with the model or the folder.

Imported by 7 tests of the run (7 passed, 0 failed): the library's results

synchronizefunction
function synchronize(repo: string, write: boolean): { readonly stale: readonly string[]; readonly problems: readonly string[]; }

Writes (or, with write false, only compares) the files; the paths that are not what the model makes, and the problems.

Imported by 29 tests of the run (29 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.