Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tools/d2/d2.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { toolInstallTest } from "tests";

toolInstallTest({
toolName: "d2",
toolVersion: "0.7.1",
});
29 changes: 29 additions & 0 deletions tools/d2/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 0.1
downloads:
- name: d2
downloads:
# Every platform ships a tarball (windows included; the .msi is skipped).
# The archive holds `d2-v${version}/bin/d2`, so one level is stripped and the
# nested `bin` is added to PATH rather than stripping two levels, which would
# discard the bundled LICENSE/man files.
- os:
linux: linux
macos: macos
windows: windows
cpu:
x86_64: amd64
arm_64: arm64
url: https://github.com/terrastruct/d2/releases/download/v${version}/d2-v${version}-${os}-${cpu}.tar.gz
strip_components: 1
tools:
definitions:
- name: d2
download: d2
known_good_version: 0.7.1
environment:
- name: PATH
list: ["${tool}/bin"]
shims: [d2]
health_checks:
- command: d2 --version
parse_regex: ${semver}
6 changes: 6 additions & 0 deletions tools/jj/jj.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { toolInstallTest } from "tests";

toolInstallTest({
toolName: "jj",
toolVersion: "0.45.1",
});
32 changes: 32 additions & 0 deletions tools/jj/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 0.1
downloads:
- name: jj
downloads:
# Note the target-triple order: `${cpu}-${os}`, not `${os}-${cpu}`.
# The archives hold `jj` at their root alongside README/LICENSE, so there is
# nothing to strip.
- os:
linux: unknown-linux-musl
macos: apple-darwin
cpu:
x86_64: x86_64
arm_64: aarch64
url: https://github.com/jj-vcs/jj/releases/download/v${version}/jj-v${version}-${cpu}-${os}.tar.gz
- os:
windows: pc-windows-msvc
cpu:
x86_64: x86_64
arm_64: aarch64
url: https://github.com/jj-vcs/jj/releases/download/v${version}/jj-v${version}-${cpu}-${os}.zip
tools:
definitions:
- name: jj
download: jj
known_good_version: 0.45.1
shims: [jj]
health_checks:
# Release binaries report `jj <version>-<commit sha>`, so `${semver}`
# would capture the sha as a prerelease suffix and never match the
# enabled version. Capture just the `x.y.z` prefix.
- command: jj --version
parse_regex: jj (\d+\.\d+\.\d+)
6 changes: 6 additions & 0 deletions tools/nx/nx.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { toolInstallTest } from "tests";

toolInstallTest({
toolName: "nx",
toolVersion: "22.5.3",
});
13 changes: 13 additions & 0 deletions tools/nx/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 0.1
tools:
definitions:
- name: nx
runtime: node
package: nx
known_good_version: 22.5.3
shims: [nx]
health_checks:
# `nx --version` reports both the workspace-local and the global version;
# outside a workspace only the global one is a semver.
- command: nx --version
parse_regex: ${semver}
31 changes: 31 additions & 0 deletions tools/pulumi/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 0.1
downloads:
- name: pulumi
downloads:
# The unix archives hold `pulumi/<binary>`, so one level is stripped to land
# the CLI and its bundled language/resource plugins at the tool root.
- os:
linux: linux
macos: darwin
cpu:
x86_64: x64
arm_64: arm64
url: https://get.pulumi.com/releases/sdk/pulumi-v${version}-${os}-${cpu}.tar.gz
strip_components: 1
# The windows zip nests one level deeper (`pulumi/bin/pulumi.exe`).
- os:
windows: windows
cpu:
x86_64: x64
arm_64: arm64
url: https://get.pulumi.com/releases/sdk/pulumi-v${version}-${os}-${cpu}.zip
strip_components: 2
tools:
definitions:
- name: pulumi
download: pulumi
known_good_version: 3.210.0
shims: [pulumi]
health_checks:
- command: pulumi version
parse_regex: ${semver}
6 changes: 6 additions & 0 deletions tools/pulumi/pulumi.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { toolInstallTest } from "tests";

toolInstallTest({
toolName: "pulumi",
toolVersion: "3.210.0",
});
Loading