From 0d769b6d3742409443ddd52dd4c2d6e880c30519 Mon Sep 17 00:00:00 2001 From: Tyler Jang Date: Thu, 19 Sep 2024 14:26:27 -0700 Subject: [PATCH] (Feat): Add tool dbt-cli (#872) I added this definition to support a user, figured I'd add it here too Also fixes the squawk test constraints. --- linters/squawk/squawk.test.ts | 6 +++++- tools/dbt-cli/dbt_cli.test.ts | 6 ++++++ tools/dbt-cli/plugin.yaml | 26 ++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 tools/dbt-cli/dbt_cli.test.ts create mode 100644 tools/dbt-cli/plugin.yaml diff --git a/linters/squawk/squawk.test.ts b/linters/squawk/squawk.test.ts index 066481afb..470ecbf68 100644 --- a/linters/squawk/squawk.test.ts +++ b/linters/squawk/squawk.test.ts @@ -1,3 +1,7 @@ import { linterCheckTest } from "tests"; -linterCheckTest({ linterName: "squawk" }); +// No release for squawk on arm64 darwin https://github.com/sbdchd/squawk/issues/372 +linterCheckTest({ + linterName: "squawk", + skipTestIf: () => process.arch === "arm64" && process.platform === "darwin", +}); diff --git a/tools/dbt-cli/dbt_cli.test.ts b/tools/dbt-cli/dbt_cli.test.ts new file mode 100644 index 000000000..86fe7224a --- /dev/null +++ b/tools/dbt-cli/dbt_cli.test.ts @@ -0,0 +1,6 @@ +import { toolInstallTest } from "tests"; + +toolInstallTest({ + toolName: "dbt-cli", + toolVersion: "0.38.14", +}); diff --git a/tools/dbt-cli/plugin.yaml b/tools/dbt-cli/plugin.yaml new file mode 100644 index 000000000..a9d14650c --- /dev/null +++ b/tools/dbt-cli/plugin.yaml @@ -0,0 +1,26 @@ +version: 0.1 +downloads: + - name: dbt-cli + version: 0.38.14 + downloads: + - os: + linux: linux + cpu: + x86_64: amd64 + arm_64: arm64 + url: https://github.com/dbt-labs/dbt-cli/releases/download/v${version}/dbt_${version}_${os}_${cpu}.tar.gz + - os: + macos: darwin + url: https://github.com/dbt-labs/dbt-cli/releases/download/v${version}/dbt_${version}_darwin_all.tar.gz + - os: + windows: windows + url: https://github.com/dbt-labs/dbt-cli/releases/download/v${version}/dbt_${version}_windows_amd64.tar.gz +tools: + definitions: + - name: dbt-cli + download: dbt-cli + known_good_version: 0.38.14 + shims: [dbt] + health_checks: + - command: dbt --version + parse_regex: dbt Cloud CLI - ${semver}