37 GB
4,042,753 files
Updated about 1 month ago
Name
Size
.github
.gitlab-ci.yml183 Bytes
xet
README.md1.69 kB
xet
azure-pipelines.yml210 Bytes
xet
mod.ts316 Bytes
xet
mod_test.ts211 Bytes
xet
zuke.json25 Bytes
xet
zuke.ts1.58 kB
xet
README.md

ci-only

For a small project the CI YAML hurts more than the build. This example is a project whose whole reason to have a zuke.ts is the pipeline: two targets and three cicd() declarations, one per provider, all generated from the same source.

zuke generate-ci         # writes the three files below
zuke generate-ci --check # the CI gate: fail if one drifted
zuke test                # run the same targets locally
Field Provider Written to
ci GitHub Actions .github/workflows/ci.yml
gitlab GitLab CI .gitlab-ci.yml
azure Azure Pipelines azure-pipelines.yml

The committed files are exactly what the build generates. What to notice:

  • fanOut: true on the GitHub file turns each target into its own job. The test job carries needs: [lint] because test declares .dependsOn(this.lint) — the workflow's shape is the build's graph, and a hand-written YAML could never stay in sync with it.
  • Every job opens with the zuke-build/zuke action, SHA-pinned, which hardens the runner and checks out the repository before the target runs.
  • Running any target regenerates the files, so you cannot forget to. On CI (GITHUB_ACTIONS, GITLAB_CI, and the rest are detected) the run verifies the committed files instead and fails on drift.
  • Bitbucket Pipelines is the fourth provider; add bitbucket = cicd({ provider: "bitbucket" }) and regenerate.
Total size
37 GB
Files
4,042,753
Last updated
Oct 24
Pre-warmed CDN
US EU US EU

Contributors