Skip to content

Commit

Permalink
(Feat): Add tool dbt-cli (#872)
Browse files Browse the repository at this point in the history
I added this definition to support a user, figured I'd add it here too

Also fixes the squawk test constraints.
  • Loading branch information
TylerJang27 authored Sep 19, 2024
1 parent a3fab51 commit 0d769b6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
6 changes: 5 additions & 1 deletion linters/squawk/squawk.test.ts
Original file line number Diff line number Diff line change
@@ -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",
});
6 changes: 6 additions & 0 deletions tools/dbt-cli/dbt_cli.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { toolInstallTest } from "tests";

toolInstallTest({
toolName: "dbt-cli",
toolVersion: "0.38.14",
});
26 changes: 26 additions & 0 deletions tools/dbt-cli/plugin.yaml
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 0d769b6

Please sign in to comment.