Skip to content

Commit

Permalink
Breakout deno into tools/ (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
dapirian authored Sep 6, 2023
1 parent 68be584 commit e3a0c65
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 22 deletions.
3 changes: 2 additions & 1 deletion linters/deno/deno.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { linterFmtTest } from "tests";
import { skipCPUOS } from "tests/utils";

linterFmtTest({ linterName: "deno" });
linterFmtTest({ linterName: "deno", skipTestIf: skipCPUOS([{ os: "linux", cpu: "arm64" }]) });
21 changes: 0 additions & 21 deletions linters/deno/plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,4 @@
version: 0.1
downloads:
- name: deno
downloads:
- os:
macos: apple-darwin
cpu:
x86_64: x86_64
arm_64: aarch64
url: https://github.com/denoland/deno/releases/download/v${version}/deno-${cpu}-${os}.zip
- os:
linux: unknown-linux-gnu
windows: pc-windows-msvc
cpu:
x86_64: x86_64
url: https://github.com/denoland/deno/releases/download/v${version}/deno-${cpu}-${os}.zip
tools:
definitions:
- name: deno
download: deno
known_good_version: 1.36.4
shims: [deno]
lint:
definitions:
- name: deno
Expand Down
9 changes: 9 additions & 0 deletions tools/deno/deno.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { makeToolTestConfig, toolTest } from "tests";
import { skipCPUOS } from "tests/utils";

toolTest({
toolName: "deno",
toolVersion: "1.36.4",
testConfigs: [makeToolTestConfig({ command: ["deno", "--version"], expectedOut: "deno 1.36.4" })],
skipTestIf: skipCPUOS([{ os: "linux", cpu: "arm64" }]),
});
24 changes: 24 additions & 0 deletions tools/deno/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 0.1
downloads:
- name: deno
downloads:
- os:
macos: apple-darwin
cpu:
x86_64: x86_64
arm_64: aarch64
url: https://github.com/denoland/deno/releases/download/v${version}/deno-${cpu}-${os}.zip
- os:
linux: unknown-linux-gnu
windows: pc-windows-msvc
cpu:
x86_64: x86_64
url: https://github.com/denoland/deno/releases/download/v${version}/deno-${cpu}-${os}.zip
tools:
definitions:
- name: deno
download: deno
known_good_version: 1.36.4
shims:
- name: deno
target: deno

0 comments on commit e3a0c65

Please sign in to comment.