Buckets:
37 GB
4,042,753 files
Updated about 1 month ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .github | 1 items | ||
| .gitlab-ci.yml | 183 Bytes xet | 789c2a4d | |
| README.md | 1.69 kB xet | eba8148b | |
| azure-pipelines.yml | 210 Bytes xet | 431bb19f | |
| mod.ts | 316 Bytes xet | c063c1fe | |
| mod_test.ts | 211 Bytes xet | 43ad2eff | |
| zuke.json | 25 Bytes xet | c7ed1151 | |
| zuke.ts | 1.58 kB xet | 84aab1f2 |
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: trueon the GitHub file turns each target into its own job. Thetestjob carriesneeds: [lint]becausetestdeclares.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/zukeaction, 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