Buckets:
| // Copyright (c) 2026 the Zuke contributors | |
| // SPDX-License-Identifier: MIT | |
| /** | |
| * Never write CI YAML again. | |
| * | |
| * This build's real job is the pipeline: one `cicd()` field per provider, each | |
| * generated from the same two targets. `zuke generate-ci` | |
| * writes every file; running any target regenerates them; on CI the run | |
| * verifies the committed copies instead and fails if they have drifted. | |
| * | |
| * zuke generate-ci # write the pipeline files | |
| * zuke generate-ci --check # fail if a committed file drifted | |
| * zuke test # the same targets, locally | |
| */ | |
| import { Build, cicd, run, target } from "jsr:@zuke/core@^1"; | |
| import { DenoTasks } from "jsr:@zuke/deno@^1"; | |
| class Pipeline extends Build { | |
| // GitHub Actions: one job per target, wired with `needs:` edges that mirror | |
| // `dependsOn` — independent targets run in parallel on the provider. | |
| ci = cicd({ provider: "github", fanOut: true }); | |
| // The same pipeline for GitLab and Azure: the provider is the only required | |
| // field, and the default path follows it (.gitlab-ci.yml, azure-pipelines.yml). | |
| gitlab = cicd({ provider: "gitlab" }); | |
| azure = cicd({ provider: "azure" }); | |
| lint = target() | |
| .description("Lint the sources") | |
| .executes(() => DenoTasks.lint((s) => s.paths("."))); | |
| test = target() | |
| .description("Type-check and test") | |
| .dependsOn(this.lint) | |
| .executes(() => DenoTasks.test((s) => s.allowAll().paths("."))); | |
| default = target() | |
| .description("Default: lint and test") | |
| .dependsOn(this.test) | |
| .executes(() => {}); | |
| } | |
| await run(Pipeline); | |
Xet Storage Details
- Size:
- 1.58 kB
- Xet hash:
- 84aab1f20a4fc200dfcfda0f65ee9807b9cc015038dc46f84120c00b78f22fd3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.