diff --git a/README.md b/README.md index 5c922f11..3b905faa 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This library provide a simple way to extract dependencies, and metadata from any Detect more than **+500 technologies** in your code base. - **Full Support:** NodeJS, PHP, Docker, Github Actions -- Partial Support: Deno, Golang, Ruby, Rust, Terraform +- Partial Support: Deno, Golang, Ruby, Rust, Terraform, Zig Check all [rules](https://github.com/specfy/stack-analyser/tree/main/src/rules). diff --git a/src/rules/__snapshots__/index.test.ts.snap b/src/rules/__snapshots__/index.test.ts.snap index 99e1699a..6a3ed2cb 100644 --- a/src/rules/__snapshots__/index.test.ts.snap +++ b/src/rules/__snapshots__/index.test.ts.snap @@ -450,6 +450,7 @@ exports[`all > should match everything 1`] = ` "yousign", "zapier", "zendesk", + "zig", "zookeeper", "zoom", "zuora", diff --git a/src/rules/spec/githubActions/__snapshots__/component.test.ts.snap b/src/rules/spec/githubActions/__snapshots__/component.test.ts.snap index 6ace5eaa..845f913e 100644 --- a/src/rules/spec/githubActions/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/githubActions/__snapshots__/component.test.ts.snap @@ -490,6 +490,11 @@ exports[`docker > should match all dependencies 2`] = ` "google-github-actions/upload-cloud-storage", "1", ], + [ + "githubAction", + "goto-bus-stop/setup-zig", + "1", + ], [ "githubAction", "hashicorp/setup-terraform", diff --git a/src/rules/spec/index.ts b/src/rules/spec/index.ts index de723d04..eb34d894 100644 --- a/src/rules/spec/index.ts +++ b/src/rules/spec/index.ts @@ -7,3 +7,4 @@ import './php/index.js'; import './ruby/index.js'; import './rust/index.js'; import './terraform/index.js'; +import './zig/index.js'; diff --git a/src/rules/spec/zig/index.ts b/src/rules/spec/zig/index.ts new file mode 100644 index 00000000..0617967e --- /dev/null +++ b/src/rules/spec/zig/index.ts @@ -0,0 +1,9 @@ +import { register } from '../../../register.js'; + +register({ + tech: 'zig', + name: 'Zig', + type: 'language', + extensions: ['.zig'], + dependencies: [{ type: 'githubAction', name: 'goto-bus-stop/setup-zig' }], +}); diff --git a/src/types/techs.ts b/src/types/techs.ts index ce4f7f54..805b7471 100644 --- a/src/types/techs.ts +++ b/src/types/techs.ts @@ -473,6 +473,7 @@ export type AllowedKeys = | 'yousign' | 'zapier' | 'zendesk' + | 'zig' | 'zookeeper' | 'zoom' | 'zuora';